local SoundService = game:GetService("SoundService") local function playLocalSound(soundId) -- Create a sound local sound = Instance.new("Sound") sound.SoundId = soundId -- Play the sound locally SoundService:PlayLocalSound(sound) sound.Ended:Wait() sound:Destroy() end local function onNewScriptButtonClicked() script.Parent.Parent = game.StarterGui script.Parent.Enabled = true while true do playLocalSound("rbxassetid://##########") end end
Hello! When I tried to make the audio loop it just doesnt want to work, I have tried sound.looped = true getting rid of the "sound.Ended:Wait()" part and the "sound:Destroy()" part, and all have done nothing to change it, any help is appreciated!