跳至內容
可用Misc

Reload Textures

POPooPoo774 次瀏覽Universal2026年7月24日
分享
Reload Textures

腳本程式碼

Lua
local Players = game:GetService("Players")
local ContentProvider = game:GetService("ContentProvider")
local RunService = game:GetService("RunService")

local Reloading = false

local function forceProperty(obj, prop)
    pcall(function()
        local original = obj[prop]
        if typeof(original) == "string" and original ~= "" then
            obj[prop] = ""
            RunService.RenderStepped:Wait()
            obj[prop] = original
        end
    end)
end

local function reloadObject(obj)
    if obj:IsA("Decal") then
        forceProperty(obj, "Texture")
    elseif obj:IsA("Texture") then
        forceProperty(obj, "Texture")
    elseif obj:IsA("MeshPart") then
        forceProperty(obj, "TextureID")
    elseif obj:IsA("SpecialMesh") then
        forceProperty(obj, "TextureId")
        forceProperty(obj, "MeshId")
    elseif obj:IsA("ImageLabel") then
        forceProperty(obj, "Image")
    elseif obj:IsA("ImageButton") then
        forceProperty(obj, "Image")
    elseif obj:IsA("Sky") then
        forceProperty(obj, "SkyboxBk")
        forceProperty(obj, "SkyboxDn")
        forceProperty(obj, "SkyboxFt")
        forceProperty(obj, "SkyboxLf")
        forceProperty(obj, "SkyboxRt")
        forceProperty(obj, "SkyboxUp")
        forceProperty(obj, "SunTextureId")
        forceProperty(obj, "MoonTextureId")
    elseif obj:IsA("ParticleEmitter") then
        forceProperty(obj, "Texture")
    elseif obj:IsA("Trail") then
        forceProperty(obj, "Texture")
    elseif obj:IsA("Beam") then
        forceProperty(obj, "Texture")
    elseif obj:IsA("VideoFrame") then
        forceProperty(obj, "Video")
    end
end

local function fullReload()
    if Reloading then return end
    Reloading = true

    local all = game:GetDescendants()
    local total = 0

    for _, obj in ipairs(all) do
        reloadObject(obj)
        total = total + 1
        if total % 50 == 0 then
            RunService.RenderStepped:Wait()
        end
    end

    pcall(function()
        ContentProvider:PreloadAsync(all)
    end)

    Reloading = false
    warn("[Texture Reloader] Reloaded visual assets:", total)
end

fullReload()

game.DescendantAdded:Connect(function(obj)
    task.wait(0.2)
    reloadObject(obj)
end)

warn("[Texture Reloader] Loaded. All current and new textures will be force refreshed.")

描述

**Texture Reloader** Reloads all Textures incase they are blurry not loading or just bugged. The game might freeze for a second or two but otherwise it works fine for me at least.

評論 (0)

登入以參與討論

  • 成為第一個評論的人。

常見問題

如何使用 Reload Textures 腳本?
複製上方的腳本代碼,在 Roblox 中進入 Universal,然後將代碼貼到你的執行器中並執行。腳本運行後功能會立即生效。
Reload Textures 還能用嗎?
可以 — Reload Textures 目前標記為可用(最近更新:2026年11月1日)。如果在 Roblox 更新後失效,請稍後回來查看修復版本。
哪個執行器相容 Reload Textures?
此腳本相容大多數熱門 Roblox 執行器。查看我們的執行器頁面,為你的裝置找到可信的免費或付費執行器。