✓ Accepted answer
Here is one way:
In the studio explorer, write a value of the server version.
Make a module script with a function that returns the newest version.
Make a script in your game that checks if there is a difference between the numbers.
When you update:
You will have to change the version in the module script, and change the version in the studio to be the SAME.
All old games will be shut-down!
Code:
ModuleScript:
local version=1
return version
Game:
while wait() do
local num=require(PUT MODULE SCRIPT ID HERE)
if num~=game.Workspace.Version.Value then
local plyrs=game.Players:GetChildren()
for i=1,#plyrs,1 do
plyrs[i]:Kick("Game Updated. Please Rejoin.")
end
end
end
1 comment
Not 100% sure but this could possibly help: http://wiki.roblox.com/index.php?title=API:Class/DataModel/PlaceVersion