Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function createSound(id, playbackSpeed)
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://" .. id
- sound.Volume = 10
- sound.PlaybackSpeed = playbackSpeed
- sound.Parent = workspace
- return sound
- end
- local sounds = {
- createSound("126661876829169", 0.4),
- createSound("78154888193339", 0.4),
- createSound("110726080164032", 0.4)
- }
- local skybox = Instance.new("Sky")
- skybox.SkyboxBk = "rbxassetid://172423468"
- skybox.SkyboxDn = "rbxassetid://172423468"
- skybox.SkyboxFt = "rbxassetid://172423468"
- skybox.SkyboxLf = "rbxassetid://172423468"
- skybox.SkyboxRt = "rbxassetid://172423468"
- skybox.SkyboxUp = "rbxassetid://172423468"
- skybox.Parent = game.Lighting
- local function playSequence(index)
- sounds[index]:Play()
- sounds[index].Ended:Connect(function()
- if sounds[index + 1] then
- playSequence(index + 1)
- else
- skybox:Destroy() -- Remove the Skybox when the last sound ends
- end
- end)
- end
- playSequence(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement