How can i add a sound when youre using a tool? Thank you
COMMUNITY QUESTION
How can i add a sound when youre using a tool?
1 answer
This is pretty vague question.
if you'd like a song to play while a gear is equipped then you can just do
script.Parent.Equipped:Connect(function()
script.Parent.Sound:Play()
end)
script.Parent.Unequipped:Connect(function()
script.Parent.Sound:Stop()
end)
If you'd like a sound to play when the tool is activated (clicked/tapped while equipped) you can do
script.Parent.Activated:Connect(function()
script.Parent.Sound:Play()
end)
it really boils down to :Play() and :Stop() which you can implement into any event function inside the gear.
This discussion is preserved as it was. New answers, comments, and votes are closed.
