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

Why doesnt this work?

I am working on a Gui admin system

--Mag's Commands V0.1

admins = {"magoo8","Player1","Player2","Player3"} --Put your name here

while true do wait(0.5) if game.Players:FindFirstChild(admins) then script.Parent.Open.Visible = true end end

1 comment

0

Put it into code block so it is easier to read

2 answers

Might work..


--Mag's Commands V0.1

admins = {"magoo8","Player1","Player2","Player3"} --Put your name here
AdminEnabled = false

if game.Players:FindFirstChild(admins) then
AdminEnabled = true
end

--Mag's Commands V0.1

admins = {"magoo8","Player1","Player2","Player3"} --Put your name here

while true 
wait(0.5) 
if game.Players:FindFirstChild(admins) then 
script.Parent.Parent.Open.Visible = true
end

Pretty sure this might work.

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