How to start Music always at TimePosition 0?

thats what i littery said
he didn’t littery meant timeposition he just meant to it start from the beginning

It is the same thing. If you set time position to 0 it is going to start the music from the very beginning.

the music plays once and then stops

[EDIT] : I tried the script in another place and somehow it worked

wait wrong code

local id = {1532584532,836718931}
local music = game.ReplicatedStorage.CurrentMusic:Clone()
while wait() do
	local main = music:Clone()
	local chosenid = id[math.random(1,#id)]
	main.SoundId = "rbxassetid://"..chosenid
	main.Looped = false
	main.Name = "Cloned" --name whatever you want
	main.Parent = game.ReplicatedStorage
	main:Play()
	repeat wait() until main.IsPlaying == false
	main:Destroy()
end

and variant 2

local id = {1532584532,836718931}
local music = game.ReplicatedStorage.CurrentMusic:Clone()

local main = music:Clone()
local chosenid = id[math.random(1,#id)]
main.SoundId = "rbxassetid://"..chosenid
main.Looped = false
main.Name = "Cloned" --name whatever you want
main.Parent = game.ReplicatedStorage
main:Play()
repeat wait() until main.IsPlaying == false
main:Destroy()

you can remove while to make it play only once

Couldn’t you just add music.TimePosition = 0 after every loop?

Also, can’t you do music.Playing = true instead of music:Play() (and then set music.Playing = false so you can repeat the loop)

(I’ve generally had more experience with VideoFrames instead of Audio so this might not work but it should work)