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

Script working fine in test mode, but not in-game?

Asked by
traigla 75
9 years ago

I have this script where it would loop. It works in Studio, however in-game, it throws an error saying PlayerGui is not a valid member of Script.

Would anyone be able to help? Thanks

for _,a in pairs (game.Players:GetChildren()) do
        if not (a.PlayerGui:findFirstChild("Main")) then

Answer this question