epicllllllllllllllll

dandy

Oct 28th, 2024
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character or player.CharacterAdded:Wait()
  3. local humanoid = character:WaitForChild("Humanoid")
  4. local animationId = "rbxassetid://16496852675"
  5.  
  6. local animation = Instance.new("Animation")
  7. animation.AnimationId = animationId
  8.  
  9. local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid)
  10.  
  11. local animationTrack = animator:LoadAnimation(animation)
  12.  
  13. -- Function to play the animation continuously with a 1-second wait
  14. local function playAnimationWithWait()
  15. while true do
  16. animationTrack:Play()
  17. wait(1000) -- Wait for 1 second before playing again
  18. end
  19. end
  20.  
  21. playAnimationWithWait()
Advertisement
Add Comment
Please, Sign In to add comment