Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local animationId = "rbxassetid://17617839395"
- local animation = Instance.new("Animation")
- animation.AnimationId = animationId
- local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid)
- local animationTrack = animator:LoadAnimation(animation)
- -- Function to play the animation continuously with a 1-second wait
- local function playAnimationWithWait()
- while true do
- animationTrack:Play()
- wait(1000) -- Wait for 1 second before playing again
- end
- end
- playAnimationWithWait()
Add Comment
Please, Sign In to add comment