So i want my character play my "custom" sound when he dies and he can only hear it.
script that clones this in him
local Wasted = script.Wasted:Clone()
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:wait()
Wasted:Clone().Parent = player
end)
script that should play when he dies ONLY FOR HIM...
Player = script.Parent.Parent.Parent.Parent.Character
Wasted = script.Parent
s = Player.Humanoid
while true do
if s.Health <= 0 then
Wasted:Play()
end
end
http://prntscr.com/8aqhj0 <<<< how my setup looks. is this right or is something wrong ? No errors in output tho... :/

1 comment
Dang, this is smart... Thank you anyway! I'll test this in the morning cuz now i gotta go sleep c: