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 5 years ago
Edited 5 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.

local Counting = game.StarterGui.CountDown.Frame

Counting.Three.Visible = true

wait(1)

Counting.Three.Visible = false

Counting.Two.Visible = true

wait(1)

Counting.Two.Visible = false

Counting.One.Visible = true

wait(1)

Counting.One.Visible = false

Counting.Go.Visible = true

wait(1) 

Counting.Go.Visible = false

Counting.Parent.Enabled = false

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 — 5y

1 answer

Log in to vote
1
Answered by
tantec 305 Moderation Voter
5 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

-- we will use Count.Three as our lone textlabel
for i = 1, 3 -- this is how many times it will loop so in this case 3 times because you're waiting 3 seconds.
    Count.Three.Text = i
    wait(1) --amount of time you want it to wait 
end
Count.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 — 5y
Ad

Answer this question