0

# Why wont this work? [closed]

while true do
A = game.StarterGui.ScreenGui
A.Llama.Visible = true
wait(3)
A.Llama.Visible = false
A.Rank.Visible = true
wait(3)
A.Rank.Visible = false
A.AntiSpam.Vislble = true
wait(3)
A.AntiSpam.Visible = false
A.AntiKill.Visible = true
wait(3)
A.AntiKill.Visible = false
A.Approval.Visible = true
wait(3)
A.Approval.Visible = false
A.Report.Visible = true
wait(3)
A.Report.Visible = false
wait(3)
end


Why wont this work? I've been trying to make it so then the Gui's change at intervals so then the Llama Gui appears first and then after 3 seconds it disappear then the Rank Gui Appears then after 3 seconds ect.. But the thing is, I asked a advanced scripter and they said that it should work fine.. But it isn't. Any help?

### Locked by JesseSong

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

1
Shawnyg 4251
7 years ago

You should put the script inside the Gui and change the paths (you'll need to add script.Parent quite a few times). By doing so, it'll change for all players. Here's the code.

while true do
A = script.Parent --Put this directly as a child of the Screen GUI!
A.Llama.Visible = true
wait(3)
A.Llama.Visible = false
A.Rank.Visible = true
wait(3)
A.Rank.Visible = false
A.AntiSpam.Vislble = true
wait(3)
A.AntiSpam.Visible = false
A.AntiKill.Visible = true
wait(3)
A.AntiKill.Visible = false
A.Approval.Visible = true
wait(3)
A.Approval.Visible = false
A.Report.Visible = true
wait(3)
A.Report.Visible = false
wait(3)
end

2

Is this in a LocalScript or a Server-side script?

If it is inside of a localscript then you should use game.Players.LocalPlayer.PlayerGui otherwise you will need to find the player's name somehow.

1
You need to go through the player gui Player1.PlayerGui.A.Antikill.Visible = true