Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Auto updating model, not working? Any fixes?

Asked by 7 years ago

I'm using the code from the Roblox wiki specifically made for this question, but it is not doing what it's supposed to be doing, I want a model that auto updates to the current version of itself when a new version is published but the model just sits there and stays as the outdated version. Very confusing

local model = script.Parent
local modelID = 693015809 -- Change this to the model id of the model you created earlier

function checkUpdate()
    local newModel = game:GetService("InsertService"):LoadAsset(modelID)

    if model.Version.Value < newModel.Version.Value then
         newModel.Parent = model.Parent
         model:remove()
    end
end

checkUpdate() -- You can either put this in a loop, or call it once. I reccomend calling it once.

0
Am I missing some code? Let me know because this doesn't work. Thanks greybird700 63 — 7y
0
Did you create this code? TheeDeathCaster 2368 — 7y
0
Can somebody demonstrate how I can change my script using the page linked above? ^^ greybird700 63 — 7y

Answer this question