CharacterAutoLoad is set to false.
function onPlayerDied(player) script.StartMenu:Clone().Parent=game.Players.LocalPlayer.PlayerGui end Players.LocalPlayer.Character.Humanoid.Died():connect(onPlayerDied)
I keep getting this error:
13:58:09.416 - ReplicatedFirst.GUI:22: attempt to index field 'Character' (a nil value)
Thank you!
Put this in Normal Script in workspace and put the Gui In it and name the GUI dead
function udead(whodat, whodatplr) whodat.Humanoid.Died:connect(function() script.dead:Clone().Parent = whodatplr.PlayerGui end) end game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:wait() udead(plr.Character,plr) plr.CharacterAdded:connect(function(char) udead(char,plr) end) end)