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

I want this sound to play when I pick up this tool how do I do this?

Asked by 3 years ago

So I have this tool and you pick it up from proximity prompt and I want to make a sound when you pick it up so how do I do this exactly? Thanks

0
Tools have an event called Tool.Equipped. You can do Tool.Equipped:Connect(Function() sound:Play() end) or something like that kingtasaz123 6 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Just a little note before I go on to the script, this is not a request site.

script.Parent.Triggered:Connect(function()
local sound = script.Parent.Sound
sound:Play()
end

If you have any problems with this, please let me know, and I'll be happy to help.

0
Make this a server script in the prompt, and make sure the sound is also a child of the prompt. Blxefirx 31 — 3y
Ad

Answer this question