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

Trying to get a script to do something if a gui of a specific game is not found in a player?

if player.PlayerGui:FindFirstChild("TeleportGUI") not then
	
end

Im not sure what im doing with this. I already have the player referenced correctly and all that, no issue there. I just am stuck on how to write this line of code out correctly.

2 comments

1

== nil

0

not is before the parameter, not after.

1 answer

✓ Accepted answer
if player.PlayerGui:FindFirstChild(“TeleportGUI”) == nil then

end

This should work

1 comment

0

Thank you! It does.

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