Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a Death Announcer?

Asked by 9 years ago

Is there a way when the player dies the sound say the player's name?

1 answer

Log in to vote
0
Answered by 9 years ago

No, there's not. You'd need to upload sounds, but it would only work on custom players because you can't randomize sounds.

But you can use functions and hints to create an announcement when someone dies.

player = script.Parent.Parent

player.Character.Humanoid.Died:connect(function() -- Created a function that is fired when the player dies.
h = Instance.new("Hint", game.Workspace) -- Inserting the "announcement" 
h.Text = player.Name .. " has died! :(" -- Adding a voice to the announcement. 
end)

Ad

Answer this question