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

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

Asked by 5 years ago
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.

1
== nil DinozCreates 1070 — 5y
0
not is before the parameter, not after. DinozCreates 1070 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago
if player.PlayerGui:FindFirstChild(“TeleportGUI”) == nil then

end

This should work

0
Thank you! It does. Octocentillion 15 — 5y
Ad

Answer this question