So I am trying to make a GUI that makes a sound play server sided. It's like a GUI that allows you to play a sound for everyone. Here is my local script
local debounce = false
script.Parent.MouseButton1Click:Connect(function()
if debounce == false then
debounce = true
game.ReplicatedStorage:WaitForChild("SOCIOSTATUS").CityLockdown:FireServer()
print("CL Lockdown")
wait(120)
debounce = false
else
local text = script.Parent.Text
text = "On cooldown."
print("CL Cooldown")
wait(2)
text = text
end
end)
It does print CL Lockdown but it doesn't print the received event in the script below
local clsound = game.SoundService.CitSiren
script.Parent.OnServerEvent:Connect(function(Player)
print("CL received")
clsound.Playing = not clsound.Playing
print("CL Successful")
end)
