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

ho do i add impact sound effect when i hit a humanoid?

i dont get how or where to put it plss hep me

1 comment

0

Do you have a sword script? show the attack script/line of it. If not, do you mean when it gets hit in general?

1 answer

local sound = Instance.new(“Sound”,game.Workspace)
sound.SoundId = — put the sound ID here

This will create a sound and whenever you want to play it, you type

sound:Play()

In your case, you can play the sound when a person has taken damage

1 comment

0

I personally haven’t tested this out but it should work.

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