You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
On me updating the game and publishing it, i need it to fire a event
What is the issue? Include screenshots / videos if possible!
it prints the server is updated but its not
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried this in game
I looked online to find solutions but the topic was always off
Code:
local Message = "GAME UPDATED, REJOIN FOR NEW UPDATE!"
local Ver = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Updated
task.spawn(function()
while true do
local NewVer = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Updated
if NewVer ~= Ver then
warn("Not Updated Server")
for i = 1, 2 do
task.wait(1)
game.ReplicatedStorage.Remotes.SystemMessage:FireAllClients(Message)
end
else
print("Updated Server")
end
task.wait(5)
end
end)
You dont need to see the client script as it is unrelated. DONT ASK