local RE =game.ReplicatedStorage:WaitForChild("RemoteEvent")
RE.OnServerEvent:Connect(function(sender, ID,Gen)
if Gen == "Play" then
local Plr=game.Workspace:FindFirstChild(sender.Name)
if not Plr:FindFirstChild("Sound") then
local Sound = Instance.new("Sound",Plr)
Sound.SoundId = ID
Sound.Looped = true
Sound:Play()
end
if Gen == "Pause" then
Plr:FindFirstChild("Sound")
end
if Gen == "Stop" then
Plr:FindFirstChild("Sound"):Destroy()
end
end
end)
Just made this radio script, but it doesn't work. I made a variable called gen, that variable checks if the pause button is clicked and fired but it doesn't work please help. Like i instead of having 3 remote events just have one with just setting some variables for it??

2 comments
Can we see your local script as well? I don't see anything too wrong with this. Not sure why you're doing "local Plr = game.Workspace:FindFirstChild(sender.Name)" when you could just do "local Plr = sender.Character"
Oh thx i didn't know that