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

game.PlaceVersion always returns 0?

Asked by 8 years ago

I want to create notification about new version of game is available, but game.PlaceVersion always returns 0 and notification will not work. Why?

0
Have you tried in an actual server? This most likely won't work in testing solo DigitalVeer 1473 — 8y
0
Same on actual server. NAUSHNIK52 0 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

Try out this:

game.Changed:connect(function(prop)
if (prop == 'PlaceVersion') then
-- code
end end)
Ad
Log in to vote
0
Answered by 8 years ago

game.PlaceVersion won't change while your server is running. If you want to notify your players that a new version is available, you should use datastores (one way would be to use OnUpdate to monitor a key that you manually update when a new version comes out)

Answer this question