Well, first, you can only change GUI with Localscript, and second, the StarterGui is not where the player’s GUI is. It acts like the StarterPack. It’s just what gets put there when you spawn in, but you can’t interact with it as if it was the player’s.
use a
Remote event and FireServer on your MainServer and then Use OnServerEvent on local script
Make a gui, insert script in it that will make gui pop up on remote trigger. Remote will be in ReplicatedStorage.
In ServerScriptService make script like
Players.OnPlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
char.Humanoid.Died:Connect(function((
remoteFireClient(plr) --Remote that should be triggered on death
end)
end)
end)
OHH, sorry, I thought you need on player death script!