Script-created sounds with loop true not looping?

Hello,

I have a few scripts in my game running on ServerScriptService, and when these scripts creates a new Sound instance, sets looped to true and reproduces the sound, the sound is not looping.
Sounds pre-created in studio and then reproduced by a script does loop.

Is it a problem with my scripts or is it a engine bug? I tried even setting Looped to true using the developer console, and it just doesn’t loop.

Can you share some of the code that you’re using to do this?

Sure.

-- Some other code here, irrelevant
local sound = Instance.new('Sound', workspace)
sound.Name = "RAID_SOUND"
sound.SoundId = "rbxassetid://x"
sound.Looped = true
if not sound.IsLoaded then
    sound.Loaded:Wait()
end
sound:Play()

Change this:

For this:

game:GetService("SoundService")

Still not looping. I don’t think it is where the sound is parented to, since this code used to work normally some days ago, I did not change anything on it to “stop working”, suddenly that just happened.
As I previously said, it is probably a engine bug.

Try this:

Sound = Instance.new("Sound",game:GetService("SoundService"))
Sound.SoundId = "" --| Id
Sound.Playing = true

The same as before. I checked what happens with the sound on the studio explorer (on team test), when the sound is supposed to loop, it starts playing back, but Sound.PlaybackLoudness stays at 0, and will only go up if I stop or pause the sound, and then resume it.

How complicated this has become xd