When I attempt calling the :Play() method there’s no error and no sound playing, I have also attempted using content provider service but that did not work either, I can’t find the root of the issues if someone has any idea how I can fix it I’d be very grateful!
local function action(Player, Id, Action)
if Action == "Play" then
Sound.SoundId = "rbxassetid://"..Id
Sound:Play()
elseif Action == "Stop" then
Sound:Stop()
print(Sound.SoundId)
end
end
Can you try printing to see if the function is working?
Is the sound a descendant of workspace when you are playing? I don’t think sound can play if it is not a descendant of workspace.
-- // Variables \\ --
local Boombox = script.Parent
local RemoteEvent = Boombox.RemoteEvent
local Sound = Boombox.Handle.Sound
Sound.Looped = true
-- // Functions \\ --
local function action(Player, Id, Action)
if Action == "Play" then
Sound:Play()
elseif Action == "Stop" then
Sound:Stop()
end
end
-- // Connections \\ --
RemoteEvent.OnServerEvent:Connect(action)
check if the volume in the sound is too low and check if it works when you manually put in the id and play the sound. maybe the sound wasnt approved by roblox, or it might be wrong
Thank you for educating me I never really worked with audios nor did any in depth research so for me it was weird why it wouldn’t work, thank you so much anyways and also thank you to all the people who tried helping me!