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
8 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:

repeat
    game.Workspace.BulletinGui.Welcome.Enabled = true
    wait(5)
    game.Workspace.BulletinGui.Welcome.Enabled = false
    game.Workspace.BulletinGui.Notice.Enabled = true
    wait(5)
    game.Workspace.BulletinGui.Notice.Enabled = false
    game.Workspace.BulletinGui.Attention.Enabled = true
    wait(5)
    game.Workspace.BulletinGui.Attention.Enabled = false
    game.Workspace.BulletinGui.Admin.Enabled = true
    wait(5)
    game.Workspace.BulletinGui.Admin.Enabled = false
    game.Workspace.BulletinGui.GunID.Enabled = true
    wait(5)
    game.Workspace.BulletinGui.GunID.Enabled = false
until
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 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Change your repeat loop to a while true do loop,

while true do

-- all of your code here

end

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

g = true
repeat
print("blah")
wait()
until 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 — 8y
0
Thanks :D enzdude 10 — 8y
0
Except meh answer? :D User#11440 120 — 8y
Ad

Answer this question