Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Death messages not popping up!?

NANI!? Death messages are messages that appear when you die. But it doesn't show me my death message when I die, help?

```
[SERVER SCRIPT]
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
char.Humanoid.Died:Connect(function()
    game.ReplicatedStorage.Die:FireAllClients()
end)
end)
end)

[LOCAL SCRIPT]
local color = BrickColor.new("Really red")

game.ReplicatedStorage.Die.OnClientEvent:Connect(function(plr)
    game.StarterGui:SetCore("ChatMakeSystemMessage",{
    Text = plr.Name.. " has lost connection.";
    Font = Enum.Font.SourceSansBold;
    Color = color.Color;
    FontSize = Enum.FontSize.Size96
    })    
end)```]

discord is no help so im asking the website :) thankie

1 comment

0

You want sent the message to everyone?

1 answer

[SERVER SCRIPT]
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
char.Humanoid.Died:Connect(function()
    game.ReplicatedStorage.Die:FireAllClients()
end)
end)
end)

[LOCAL SCRIPT]
local color = BrickColor.new("Really red")

game.ReplicatedStorage.Die.OnClientEvent:Connect(function()
    game.StarterGui:SetCore("ChatMakeSystemMessage",{
    Text = game.Players.LocalPlayer.Name.. " has lost connection.";
    Font = Enum.Font.SourceSansBold;
    Color = color.Color;
    FontSize = Enum.FontSize.Size.96
    })    
end)

not too sure but i think its because ur doing nil.Name basically at plr.Name

2 comments

0

it doesnt work even if i remove the space for Size and 96

0

even the localplayer part?

This discussion is preserved as it was. New answers, comments, and votes are closed.