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

How to make a server-side sound?

Asked by 5 years ago

Hi there. Currently I'm trying to make a GUI where a person on a team (Police) clicks a button and it plays a sound for people in-range. Here is my code:

game.ReplicatedStorage.Sounds.DriverStop.OnServerEvent:connect(function(player, music)
    music:Play()
end)

Currently it's not doing anything. I have put a few pictures showing what it looks like in Studio. https://imgur.com/a/wvXHNDA -- Explorer Menu

https://imgur.com/a/cjKPfOM -- Gui

https://imgur.com/a/d5fYA8R -- Sound Properties

Here is the sound ID: https://www.roblox.com/library/291690874/driver-stop-your-vehicle

What am I doing wrong?

0
local script? Igoralexeymarengobr 365 — 5y

Answer this question