here is the code to the script, but it gives a error which I cant figure out.
if
game.Players.NumPlayers.Humanoid.MaxHealth="0"
then
game.Lighting.RedKillScreen = game.StarterGui
end
here is the code to the script, but it gives a error which I cant figure out.
if
game.Players.NumPlayers.Humanoid.MaxHealth="0"
then
game.Lighting.RedKillScreen = game.StarterGui
end
I'm sorry all of your lines are WRONG. Just take this and go -_-
Insert this in Workspace.
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
local human = chr:WaitForChild("Humanoid")
human.Died:connect(function()
game.Lighting.RedKillScreen:Clone().Parent = plr.PlayerGui
print(plr.Name.." had died. May he rest in peace.")
end)
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
what is it supposed to do and there is SO MUCH STUFF WRONG WITH THAT.
it is when the player dies a gui shows