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

Why wont this work? [closed]

Asked by 10 years ago
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.

Why was this question closed?

3 answers

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 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
Ad
Log in to vote
2
Answered by 10 years ago

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.

Log in to vote
1
Answered by
Mazux 140
10 years ago

The startergui only changes upon respawn or rejoining the server.

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

That should help you get the idea of rewriting it.

0
I think I understand.. Thanks. SecretShadowLeague 0 — 10y
0
Nope, Still won't work -.- SecretShadowLeague 0 — 10y