Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

6 comments

0

Errors in output?

0

Hm. It says WifiEN is not a valid member of surfacegui but it is in there..

1

Try using WaitForChild()

0

Didn't work.

0

What is WifIEN, please explain.

0

Make sure you always identify your variables.

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.