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

[Answered] Script not Running?

Asked by
enzdude 10
9 years ago

So, in my place I made a script to make a brick show a TextLabel in a SurfaceGui change every 5 seconds, but it won't run. Does it have to do with my script? Here is the script:

01repeat
02    game.Workspace.BulletinGui.Welcome.Enabled = true
03    wait(5)
04    game.Workspace.BulletinGui.Welcome.Enabled = false
05    game.Workspace.BulletinGui.Notice.Enabled = true
06    wait(5)
07    game.Workspace.BulletinGui.Notice.Enabled = false
08    game.Workspace.BulletinGui.Attention.Enabled = true
09    wait(5)
10    game.Workspace.BulletinGui.Attention.Enabled = false
11    game.Workspace.BulletinGui.Admin.Enabled = true
12    wait(5)
13    game.Workspace.BulletinGui.Admin.Enabled = false
14    game.Workspace.BulletinGui.GunID.Enabled = true
15    wait(5)
16    game.Workspace.BulletinGui.GunID.Enabled = false
17until
0
If your question is answers, scroll down to the answer, go next to the person name, and under it, there should be something that says "Accept Answer" Async_io 908 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Change your repeat loop to a while true do loop,

1while true do
2 
3-- all of your code here
4 
5end

Because your repeat loop would need a check at the until part

1g = true
2repeat
3print("blah")
4wait()
5until not g

Good luck!

0
So just change your repeat to a while true do and your until to a end and keep all of your code. Good luck! User#11440 120 — 9y
0
Thanks :D enzdude 10 — 9y
0
Except meh answer? :D User#11440 120 — 9y
Ad

Answer this question