i am trying to check if an object isnt in a players gui because when the game starts there is a loading gui and when it loads it is removed and theres a script i want to run when it loads
local plrs = game.Players:GetChildren()
for i = 1, #plrs do
if not plrs[i].PlayerGui:FindFirstChild("Loading_Gui") then
--code
end
end

3 comments
You would have to use a LocalScript to access thinks inside of the PlayerGui
Yeah that's correct, a ServerScript can't look into players PlayerGui
a server script CAN look into a players player gui --->. game.Players[PlayerName].PlayerGui