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

How do i script random death sounds? [closed]

Asked by
Tr_mer -5
4 years ago

If at all, im trying to make it so that every time you die, a different sound would play each time.

How would i do this?

Thanks.

0
dumb comment but when you die you have the sound effect OOOOF! WN0820 11 — 4y

Closed as Not Constructive by hiimgoodpack and Fragmentation123

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago
local sounds = {sound1, sound2, sound3}

game.Players.Died:Connect(function(plr)
local randomdeath = math.random(1, #sounds)
randomdeath:Play()
end

Something like that

0
game.Players.Died:Connect(function()* MythsList 38 — 4y
0
I don't think that's a real event, maybe remotes are involved with players dieing 123nabilben123 499 — 4y
Ad