I am currently developing a game and for some reason my timer gui wont show up and count down here is my script...
COT = game.ReplicatedStorage.CorruptedTimer.Value
TCO = script.Parent
gameie = game.ReplicatedStorage.Game.Value
local mytable = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}
if gameie == 5 then
TCO.Visible = true
for i, v in pairs(mytable) do
TCO.Text = COT
COT = COT -1
end
TCO.Visible = false
end
any other methods of triggering an event that makes a timer run????

14 comments
Make the variables local! Don't do for do loop.
what does break mean
You use break to stop a while true do.
ok thank u
it says on line 13 that it expected end on line 11 to end then??? how do i fix??
Add 1 more end, to close that if statement.
Or, you can delete every end, and press enter after each function/event. That works 100%
ok
still didnt work
What is gameie, what is COT, what is TCO? Because i know what's the problem here.
it is an int value
they all are int values
and i am using a script not a local script is that a problem??
Yes, do it LocalScript. And every variable always local. Watch a basics video of Lua, it will help.