i am trying to get the players gui but every time it says { Infinite yield possible on 'Players.tylergoatboy.PlayerGui:WaitForChild("screen")'} it it will not find it (i have waited for some time )
the script is in the workspace
game.Players.PlayerAdded:Connect(function(plr)
local gui = plr.PlayerGui:WaitForChild('screen')
if gui then
print('yes')
end
end)

7 comments
in nowhere in the script does it say Players.tylergoatboy.PlayerGui, mayb try spcificying that into the "screen" part.
Is there a script anywhere that adds a ScreenGui called 'screen'?
1.that is my player and the stuff i what it to do can't be done in the gui 2.the screen is in startergui
Your writing needs Grammarly;) please be more careful about what you’re typing, I can barely understand a thing
I am pretty sure you have to wait for PlayerGui as well.
I just tried that and it did not work any other ideas?
Check the answers