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

Trying to loop using while true do, can someone please help me by telling me what's wrong?

Asked by 6 years ago
while true do 
    wait(5)
    script.Parent.AdEN.Visible = true
    script.Parent.WifiEN.Visible = false
    script.Parent.WifiDE.Visible = false
    wait(5) 
    script.Parent.AdEN.Visible = false
    script.Parent.WifiEN.Visible = true
    script.Parent.WifiDE.Visible = false
    wait(5)
    script.Parent.AdEN.Visible = false
    script.Parent.WifiDE.Visible = true
    script.Parent.WifiEN = false
    wait(5)
end
0
Errors in output? awfulszn 394 — 6y
0
Hm. It says WifiEN is not a valid member of surfacegui but it is in there.. b_bybackribs 0 — 6y
1
Try using WaitForChild() AlexAuthority 22 — 6y
0
Didn't work. b_bybackribs 0 — 6y
View all comments (2 more)
0
What is WifIEN, please explain. BaconOofsIsBest -13 — 6y
0
Make sure you always identify your variables. liteImpulse 47 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

It may be because " script.Parent.WifiEN = false" because you need to define what you want to be false

Ad

Answer this question