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.

4 comments

0

Am I missing some code? Let me know because this doesn't work. Thanks

0

Did you create this code?

0

Can somebody demonstrate how I can change my script using the page linked above? ^^