Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My countdown script won't even show the numbers, am I doing something wrong?

Asked by 6 years ago
Edited 6 years ago

Hi there, i'm a relativity new scripter and have seem to have hit a wall on this script. I have had many attempts to try and overcome this issue, yet nothing seems to work. Any help would be appreciated and useful notes will be bellow.

01local Counting = game.StarterGui.CountDown.Frame
02 
03Counting.Three.Visible = true
04 
05wait(1)
06 
07Counting.Three.Visible = false
08 
09Counting.Two.Visible = true
10 
11wait(1)
12 
13Counting.Two.Visible = false
14 
15Counting.One.Visible = true
View all 27 lines...

notes:

-this is in a local script.

-this is after an activation script (I have tried without it disabled, making it enabled at the start without a trigger script yet it still didn't work).

-The count down is a located in game.workspace.starterGui.ScreenGui.ButtonFrame2.TextButton.Counting (script name)

-It activates numbers in a starter gui that are text labels from

game.workspace.StarterGui.CountDown.Frame.Three/Two/One/Go (text label names)

-no errors in the output

That's about it I think, I've probably missed out something major but thanks for any answers, it would help a lot.

edit: miss wording leading to things sounding weird

0
Putting it in a server script did nothing before anyone says that. mistermarioguy78 4 — 6y

1 answer

Log in to vote
1
Answered by
tantec 305 Moderation Voter
6 years ago

First things, first. You shouldn't use seperate textlabels for seperate numbers, just use one textlabel. The script should've gone like this

1-- we will use Count.Three as our lone textlabel
2for i = 1, 3 -- this is how many times it will loop so in this case 3 times because you're waiting 3 seconds.
3    Count.Three.Text = i
4    wait(1) --amount of time you want it to wait
5end
6Count.Three.Text = "Go!" -- this changes after you do the 3, 2, 1 thing.

For more information on for loops go here

Please accept my answer if this helped ;) ~tantec

0
Thanks it works now :D mistermarioguy78 4 — 6y
Ad

Answer this question