I am getting a "Infinite yield" error on AirDropNoticeGui I do not understand why I can see it in PlayerGui. I have also tried it this way: Nam.PlayerGui.AirDropNoticeGui.Main.Visible = true Then I get an error saying it don't exist.
local plr = game:GetService("Players")
for p, Nam in pairs(plr:GetChildren()) do
Nam.PlayerGui:WaitForChild("AirDropNoticeGui").Main.Visible = true
print("1st")
wait(5)
Nam.PlayerGui:WaitForChild("AirDropNoticeGui").Main.Visible = false
print("2nd")
break
end
wait(15,50)
end

10 comments
Then it doesn't exist. The error answers your question.
Also I am trying to get a GUI to show for all players. The Gui called "AirDropNoticeGui" is in StarterGui so all player do spawn with it.
I understand it does not see it but As I run the game I can see it in the playergui. I even copy and pasted the name to make sure it was right.
I didn't know you could use starter gui like that. I will give that a try thank you.
Ok I tried to do in StarterGui and that does work in StarterGui does no show on client side. SO it has to change it in PlayerGui I still do not understand Why it is not finding it when I can see it there.
An Infinite yield means that the child being called is taking too long to be called. Try adding a wait() function instead of waitforchild() and make sure that the spelling is correct.
Are you doing this in a server (normal) script? Server scripts can’t access PlayerGui, only local scripts can.
Yes I am using a Script not a LocalScript.
What I am trying to do is a model is being placed it the workspace that works fine, Then I am trying to notify all players with a Gui.
^ Do all this in a local script then. Check if the model is placed then show the GUI through “game.Players.LocalPlayer.PlayerGui” and etc.