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

How do I make a script for a guitar that plays a looping audio when equipped?

I want the guitar to also play a script upon equipping it, like a static holding animation. How would I do this?

2 comments

0

hmm please provide some code so we can help.

0

script requests are not allowed, we are only here to help with currecnt scripts

1 answer

Try something like this: (put this script and put the sound in side of the script.)

script.Parent.Equipped:Connect:function()
script.SoundNameHere.Playing = true
script.SoundNameHere.Looping = true -- or change looping to what ever the loop variable is because I cant be bothered to check what the variable is xD
end)

script.Parent.UnEquipped:Connect:function()
script.SoundNameHere.Playing = true
script.SoundNameHere.Looping = true -- or change looping to what ever the loop variable is because I cant be bothered to check what the variable is xD
end)

1 comment

0

And the script.Parent.UnEquipped need to be script.Parent.Unequipped

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