Advertisement
ILovePotato

Untitled

Jan 22nd, 2025
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. -- Assuming you already have a character and an animation object
  2. local character = game.Players.LocalPlayer.Character or game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  3. local humanoid = character:WaitForChild("Humanoid")
  4. local animation = Instance.new("Animation")
  5. animation.AnimationId = "rbxassetid://17141153099" -- Replace with your animation ID
  6.  
  7. local sound1 = Instance.new("Sound")
  8. sound1.SoundId = "rbxassetid://17149593018" -- Replace with your first sound ID
  9. sound1.Parent = character:WaitForChild("HumanoidRootPart")
  10.  
  11. local sound2 = Instance.new("Sound")
  12. sound2.SoundId = "rbxassetid://17141392676" -- Replace with your second sound ID
  13. sound2.Parent = character:WaitForChild("HumanoidRootPart")
  14.  
  15. local sound3 = Instance.new("Sound")
  16. sound3.SoundId = "rbxassetid://17141392854" -- Replace with your third sound ID
  17. sound3.Parent = character:WaitForChild("HumanoidRootPart")
  18.  
  19. -- Play the animation
  20. local animationTrack = humanoid:LoadAnimation(animation)
  21. animationTrack:Play()
  22.  
  23. -- Play the first sound
  24. sound1:Play()
  25.  
  26. -- After 2 seconds, play the second sound
  27. wait(2)
  28. sound2:Play()
  29.  
  30. -- After 3 more seconds, play the third sound
  31. wait(3)
  32. sound3:Play()
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement