I’m starting to test sounds now.
I have inserted this sound into a part:
I want it to loop only a portion of the sound, for example, from second 1 to second 2.
I wrote this code:
local s = workspace.SpawnLocation:WaitForChild("Conveyor Belt 1 (SFX)")
s.Looped = true
s.PlaybackRegionsEnabled = true
s.PlaybackRegion = NumberRange.new(1, 2)
s.LoopRegion= NumberRange.new(1, 2)
s:Play()
But when playing the project, Studio plays the full sound (0 to 10 seconds) and not from second 1 to second 2 only.
What’s wrong?
Here is the current project if anyone can test:
Baseplate.rbxl (35.6 KB)