Hi, I'm working on a game currently, and I'm trying to make a timer gui. Changing the text directly just makes it reset when a player dies, and won't match up if another player joins the game.
I thought of connecting it to a StringValue, but I'm not totally sure how to do this.
I'm fairly new to Lua, any advice?
Simply run a for loop in a script in Workspace to update everyone's timer when it counts down. This way you don't even need an IntValue.
for x = 10,1,-1 do for i,v in pairs(game.Players:GetPlayers()) do v.PlayerGui.ScreenGui.TextLabel.Text = tostring(x) end wait(1) end