Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

1 comment

0

Putting it in a server script did nothing before anyone says that.

1 answer

✓ Accepted answer

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

1 comment

0

Thanks it works now :D

This discussion is preserved as it was. New answers, comments, and votes are closed.