#custom death sound doesn't worked

1 messages · Page 1 of 1 (latest)

lyric rune
#

I try to create custom death sound script somewhere in YT but once i replicate this script it doesn't seems to worked, It's just playing Oof sound instead of Random Spy TF2 Francis Localisation sound that i uploaded. I don't know how to scripting properly. ever since im still very beginner and dont want to wasting too much time watching tutorial too much

game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Died.SoundID = "rbxassetid:126305944572997"
crude hazel
#

wrong syntax its supposed to be rbxassetid://126305944572997. You didnt play the sound too.

lyric rune
stone dragonBOT
#

studio** You are now Level 1! **studio

crude hazel
#

script where

crude hazel
lyric rune
#
game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Died.SoundID = "rbxassetid://126305944572997"
crude hazel
#

what the hell are you doing

#

how do you expect a humanoidrootpart to die

lyric rune
#

idk

#

im still clueless

#

because im stumbled across on YT

crude hazel
#

HumanoidRootPart is a part

#

if youre doing .Died to need to get the Humanoid not HumanoidRootPart

#

Also why are you doing .Died.SoundID the SoundID is not part of Died

#

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://126305944572997"
sound.Volume = 0.5
sound.Parent = humanoidRootPart

humanoid.Died:Connect(function()
sound:Play()
end)
this will actually works the correct way

#

try watching BrawlDev or scripting tutorials first