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

why won't the sound play when in my tool?

I made a axe and when I go to click it plays the animation and I have it set to where a sound will play when the animation occurs but nothing happens...

heres my script

function hit()
	UnsheathSound:play() -- need help here
	local anim = Instance.new("StringValue")
	anim.Name = "toolanim"
	anim.Value = "Slash"
	anim.Parent = Tool
end

2 comments

0

Do you have a connection line?

0

I clearly do otherwise the animation wouldn't work

1 answer

Where did you get the UnsheathSound?? Make a variable for example :

sound = game.Workspace.UnsheathSound

2 comments

0

it is a variable -_-

0

Well, we can't know that YouShallNotPass, unless you actually include it in your script.

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