I made a tool that would play a sound every time you click and it worked just fine in Roblox studio. However, when I used it online the audio didn't play. I went back to studio and it worked fine again so I think there could be something wrong with the script or audio or something because it won't work online. here is the script that I am using if it helps:

bin = script.Parent
function Click(mouse)
script.Sound:play()
end

function Equipped(mouse)
	mouse.Button1Down:connect(Click)
end
bin.Equipped:connect(Equipped)

6 comments

0

Is FE enabled?

0

I don't know how do I check?

0

Fe is off

0

I fixed it I just had to make the scripts into local scripts

0

Please add [Answered] to your title

0

okay