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

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

Asked by
Prioxis 673 Moderation Voter
9 years ago

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
0
Do you have a connection line? SlickPwner 534 — 9y
0
I clearly do otherwise the animation wouldn't work Prioxis 673 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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

sound = game.Workspace.UnsheathSound

0
it is a variable -_- Prioxis 673 — 9y
0
Well, we can't know that YouShallNotPass, unless you actually include it in your script. SlickPwner 534 — 9y
Ad

Answer this question