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 11 years ago
01while true do
02A = game.StarterGui.ScreenGui
03A.Llama.Visible = true
04wait(3)
05A.Llama.Visible = false
06A.Rank.Visible = true
07wait(3)
08A.Rank.Visible = false
09A.AntiSpam.Vislble = true
10wait(3)
11A.AntiSpam.Visible = false
12A.AntiKill.Visible = true
13wait(3)
14A.AntiKill.Visible = false
15A.Approval.Visible = true
View all 22 lines...

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
11 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.

01while true do
02A = script.Parent --Put this directly as a child of the Screen GUI!
03A.Llama.Visible = true
04wait(3)
05A.Llama.Visible = false
06A.Rank.Visible = true
07wait(3)
08A.Rank.Visible = false
09A.AntiSpam.Vislble = true
10wait(3)
11A.AntiSpam.Visible = false
12A.AntiKill.Visible = true
13wait(3)
14A.AntiKill.Visible = false
15A.Approval.Visible = true
View all 22 lines...
Ad
Log in to vote
2
Answered by 11 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
11 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 — 11y
0
Nope, Still won't work -.- SecretShadowLeague 0 — 11y