how wold i make a script to play 1 sound then another in order and not at random.
script.Parent.ClickDetector.MouseClick:connect(function() script.Parent.Sound1:Play() end)
local sounds = {10198, 292830, 201939, 013902} -- Your Id's local order = 0 local max_sounds = #sounds local sound = script:WaitForChild("Sound") script.Parent.MouseButton1Click:connect(function() order = order + 1 <= max_sounds and order + 1 or 1 --[[ if the next sound is less than or equal to the max number of sounds in the table then move on to the next one, if it's not, restart. --]] local sound_id = 'rbxassetid://'..sounds[order] sound.SoundId = sound_id sound:Play() print(order) end) --[[ ScreenGui TextButton LocalScript Sound --]]