So I tried making a small, hidden button in a place I'm currently working on that plays a certain sound for everyone in the server. The script itself is:
owo = script.Parent sound = owo:WaitForChild('Sound') function onButtonClick() sound:Play() end owo.MouseButton1Click:connect(onButtonClick)
The thing is, it doesn't work, like, at all. It doesn't play server-wide or only on the local client. Nothing really happens. Can anyone explain where I've done wrong? I did include a ClickDetector and the sound itself is a child of the button itself. Thanks in advance!
' :connect() ' is deprecated. You must use ' :Connect() ' instead. If this doesn't help, I am not sure unless it's just a simple issue locating the audio or button.
Do you have a click detector in the part? If so it’s not mousebutton1click it’s just mouseclick. If not, idk if that will ever sense a click.