Basically, I have a GUI that displays a countdown, kills all players, teleports them to a random location, and rinse and repeat. What I'm stuck on is how to update the GUI from the server script service either using game.StarterGui.Game.Countdown.Text = "Test" or somehow using Remote Events/Fire All Clients. Here is my countdown script:
times = gameData.gameTime.Value
gtimenum = times
spawn(function()
while gameData.data.gameEnded.Value == false do
if times <= 0 then
times = gtimenum
else
main.time_left.Text = ""..times
wait(1)
times = times - 1
end
end
end)
Any help appreciated.

4 comments
So I put the first thing of code into the Server Script Service, and put the local script where?
And what about my game script?
"custom functions" isn't a thing - he wrapped his function with 'spawn' earlier because of his loop, which may or may not be necessary depending on the rest of his code.
Put the local script in the PlayerGui.