Advertisement
ILovePotato

Untitled

Jan 22nd, 2025
22,721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. -- Get the Player and the Workspace
  2. local player = game.Players.LocalPlayer
  3. local workspace = game:GetService("Workspace")
  4. local character = player.Character or player.CharacterAdded:Wait()
  5. local humanoid = character:WaitForChild("Humanoid")
  6.  
  7. -- Create and load sounds
  8. local sound1 = Instance.new("Sound")
  9. sound1.SoundId = "rbxassetid://17150550559" -- Replace with your first sound ID
  10. sound1.Parent = workspace
  11.  
  12. local sound2 = Instance.new("Sound")
  13. sound2.SoundId = "rbxassetid://17150550302" -- Replace with your second sound ID
  14. sound2.Parent = workspace
  15.  
  16. -- Create and load animation
  17. local animation = Instance.new("Animation")
  18. animation.AnimationId = "rbxassetid://17140902079" -- Replace with your animation ID
  19. animation.Parent = humanoid
  20.  
  21. -- Play the first sound
  22. sound1:Play()
  23.  
  24. -- Wait for 1 second
  25. wait(1)
  26.  
  27. -- Play the second sound
  28. sound2:Play()
  29.  
  30. -- Play the animation
  31. local animTrack = humanoid:LoadAnimation(animation)
  32. animTrack:Play()
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement