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

Help with making a gui pop up every few seconds?

Asked by
Admin8483 -21
7 years ago

I have tried this over and over and it never worked no matter what I did. WHAT IS GOING ON?!?!

while true do
    wait(10)
    game.StarterGui.Ad.Rockets.Visible = true
    wait(10)
    game.StarterGui.Ad.Play.Visible = true
    wait(10)
    game.StarterGui.Ad.Computer.Visible = true
    wait(10)
    game.StarterGui.Ad.Disaster.Visible = true
end
0
is it active? JSAcela 25 — 7y

4 answers

Log in to vote
0
Answered by
JSAcela 25
7 years ago

You can try using repeat, see if that works

repeat
02
    wait(10)
03
    game.StarterGui.Ad.Rockets.Visible = true
04
    wait(10)
05
    game.StarterGui.Ad.Play.Visible = true
06
    wait(10)
07
    game.StarterGui.Ad.Computer.Visible = true
08
    wait(10)
09
    game.StarterGui.Ad.Disaster.Visible = true
10
until nil
0
As JSAcela said, repeat would work well. Personally, I would do this EliteJcoombs 77 — 7y
0
That wont make any difference; he was originally using a loop to begin with. TheeDeathCaster 2368 — 7y
Ad
Log in to vote
0
Answered by
kedny23 -14
7 years ago

u need to set it to false at one point

0
Not true at all. Where did you learn to script? JSAcela 25 — 7y
0
Its actually true @JSAcela look at the way @EliteJcoombs as put it to false at one point. TherDanTDM 24 — 7y
Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

As JSAcela said, repeat works well. Though, I personally would do this:

repeat

    wait(10)
        game.StarterGui.Ad.Rockets.Visible = true
    wait(10)
        game.StarterGui.Ad.Rockets.Visible = false
        game.StarterGui.Ad.Play.Visible = true
    wait(10)
        game.StarterGui.Ad.Play.Visible = false
        game.StarterGui.Ad.Computer.Visible = true
    wait(10)
        game.StarterGui.Ad.Computer.Visible = false
        game.StarterGui.Ad.Disaster.Visible = true
    wait(10)
        game.StarterGui.Ad.Disaster.Visible = false

until nil
0
That wont make any difference; he was originally using a loop to begin with. TheeDeathCaster 2368 — 7y
Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

game.StarterGui.Ad.Rockets.Visible = true won't do anything because when the player plays the game every GUI goes to PlayerGui which can be accesed by game.Players.LocalPlayer.PlayerGui Though if you put your script inside of your "Rockets" and do script.Parent.Visible = true Its easier. And We cant give you the full script here so you would have to figure the rest of the script yourself. Learn more about this here

and here

If i helped make sure to click the "Accept Answer" button.

Answer this question