so i'm trying to make a text label gui count seconds left in a round in a game, but i dont know how to get it to work.
--I use gameTime as the variable for how much time is left, in this case 30 seconds
local gameTime = 30
i don't know if this is even remotely right but i tried doing
local counter = game.StarterGui.top.timeCounter.Text
then referencing it later right after i print this and subtract 1 second each second
print("Game time remaining = "..tostring(gameTime))
gameTime = gameTime - 1
if gameTime - 1 then
counter = gameTime.Value
but i have no ideas

2 comments
Line 4 in the last bit of code should be "counter.Text = gameTime.Value"
Most of your code is right, but make sure you have a loop. If you need more assistance try watching this video: https://www.youtube.com/watch?v=flRfJBP3kdw