I am having this weird issue: I can store a GUI from the ReplicatedStorage into the player's PlayerGui on Start Up, but I can't store any GUI when respawning? Is there something I am missing here as to why I can't do this?
I can't even put a folder into the playerGui upon respawning, why is that? Am I even able to add stuff to the PlayerGui upon respawning or is it not allowed?
And why is it that when I do the same but add it to the player Backpack, it works? Why does it not work specifically for PlayerGui?
Example, this works:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAppearanceLoaded:Connect(function(char)
local item = Instance.new("Folder")
item.Name = "Whatever"
item.Parent = player:WaitForChild("Backpack")
But this doesn't:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAppearanceLoaded:Connect(function(char)
local item = Instance.new("Folder")
item.Name = "Whatever"
item.Parent = player:WaitForChild("PlayerGui")
I don't understand this, why can't I just add to PlayerGui?

1 comment
Thank you. I figured I had to use RemoteEvents for this. I had a weird workaround before but now it's causing this issue. I knew I'd eventually have to use RemoteEvents. Thank you. At least now I know what the issue is, before I had no idea.