I’m making a prompt asking you if you want to rejoin. I don’t know how to code this.
really later, here’s a working version (note the variable names may be off and you may reach the cap so increase the waits. haven’t tested for that. you need that last wait to make sure roblox has fully updated.)
working code:
local mps = game:GetService("MarketplaceService")
while task.wait(5) do
local oldver = mps:GetProductInfo(game.PlaceId)
task.wait(5)
local newver = mps:GetProductInfo(game.PlaceId)
if oldver ~= newver then
warn("Detected update")
task .wait(5)
--do stuff
end
end
Could you provide more details in what you mean? The title and the main content of this post is a little confusing due to the relation of both of these things.
They don’t do the same. The “checkUpdate” value is the current update and the “updateTime” is the latest update. The reason why you would need both of these values is because we want to check if the current version is not equals to the update before because if we did not have this if statement it would be always saying there is a new update when there is not so we use this if statement to filter out the updated versions.
"Expected identifier when parsing expression, got ‘=’. I have no idea why this appears. It’s just making the UI visible. It waits for playergui, game paused (making the prompt appear in the pause menu), waits for confirm update and makes it visible.