local equip1 = Player.PlayerGui.Equipped.Ability1:FindFirstChildOfClass("Folder")
if equip1 then
For some reason, this gets the error of "PlayerGui is not a valid member of Player" when running. If anyone knows whats going on please help. Extra notes: This is in a serverscript and happens when saving the inventory. This happens when a player leaves, so the playergui should be there. I tried using waitforchild, but it ended up waiting infinitely.

2 comments
player is not identified :man_shrugging:
Player is identified earlier, and this is a serverscript not local