Is there an event for when a game updates?

Hello! I want to make a system that fires whenever a game updates, is there an event for that?

1 Like

Good thing you can make an event only if the server closes or shutdown!

local RunService = game:GetService("RunService")
game:BindToClose(function()
	if (RunService:IsStudio())then
		wait(1)
	else
		for i, v in next, game.Players:GetPlayers() do
		if v then
			— Fire The Client Here
			end	
		end
	end
end)

This only works if you shutdown server after you update.

I prefer using… Safe Shutdown.

No, but you could store a “GameVersion” in a DataStore that you manually update when you update your game, and have your servers check that every few minutes and compare it with the version they were built with.

3 Likes