Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Assuming you already have a character and an animation object
- local character = game.Players.LocalPlayer.Character or game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
- local humanoid = character:WaitForChild("Humanoid")
- local animation = Instance.new("Animation")
- animation.AnimationId = "rbxassetid://17141153099" -- Replace with your animation ID
- local sound1 = Instance.new("Sound")
- sound1.SoundId = "rbxassetid://17149593018" -- Replace with your first sound ID
- sound1.Parent = character:WaitForChild("HumanoidRootPart")
- local sound2 = Instance.new("Sound")
- sound2.SoundId = "rbxassetid://17141392676" -- Replace with your second sound ID
- sound2.Parent = character:WaitForChild("HumanoidRootPart")
- local sound3 = Instance.new("Sound")
- sound3.SoundId = "rbxassetid://17141392854" -- Replace with your third sound ID
- sound3.Parent = character:WaitForChild("HumanoidRootPart")
- -- Play the animation
- local animationTrack = humanoid:LoadAnimation(animation)
- animationTrack:Play()
- -- Play the first sound
- sound1:Play()
- -- After 2 seconds, play the second sound
- wait(2)
- sound2:Play()
- -- After 3 more seconds, play the third sound
- wait(3)
- sound3:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement