I'm trying to do a script that removes the Gui "Backpack Gui" from all players after 5 seconds, i know, the infinite yield its not an ERROR, but it seems to never found!
Here's the script [It's just a resume of what I'm really trying to do]
for _,player in pairs(game:GetService("Players"):GetPlayers()) do
local BPGui = player.PlayerGui:WaitForChild("Backpack Gui")
wait(0.1)
BPGui:Destroy()
end

3 comments
Well, is the backpack gui ever made?
If that's the only error code that shows in the output, it's just a warning, and if you're bothered by it then add a time argument in the WaitForChild(). If there's more error code then post it, that will show us if "Backpack Gui" even exists.
I assume this is in a server script which means it won't work because you can't acces PlayerGui from server