I want players to get their GUI from the ServerStorage, and when a player dies their GUI will be destroyed. However, one of the players do not receive the GUI for the game.
game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function()
--wait() --I tried adding a wait() in this line, but it doesn't work.
game:GetService("Players").LocalPlayer.PlayerGui.Sprinter:Destroy() --I believe this line shows the warning.
end)
Something unexpectly tried to set the parent of Sprinter to NULL while trying to set the parent of Sprinter. Current parent is PlayerGui.
Any comments on how to solve this issue? I tried adding wait() or spawn(function(), but it didn't work.

1 comment
That could work but other players can still have the GUI working, even if it's enabled to false.