Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local char = player.Character or player.CharacterAdded:Wait()
- local humanoid = char:WaitForChild("Humanoid")
- local animation1 = Instance.new("Animation")
- animation1.AnimationId = "rbxassetid://44418684"
- local animTrack1 = humanoid:LoadAnimation(animation1)
- local animation2 = Instance.new("Animation")
- animation2.AnimationId = "http://www.roblox.com/asset/?id=287388049"
- local animTrack2 = humanoid:LoadAnimation(animation2)
- local animation3 = Instance.new("Animation")
- animation3.AnimationId = "http://www.roblox.com/asset/?id=69427262"
- local animTrack3 = humanoid:LoadAnimation(animation3)
- animTrack1.Priority = Enum.AnimationPriority.Action
- animTrack2.Priority = Enum.AnimationPriority.Action
- animTrack3.Priority = Enum.AnimationPriority.Action
- local function playIdleAnimations()
- if not animTrack1.IsPlaying then animTrack1:Play() end
- if not animTrack2.IsPlaying then animTrack2:Play() end
- if not animTrack3.IsPlaying then animTrack3:Play() end
- end
- local function stopIdleAnimations()
- if animTrack1.IsPlaying then animTrack1:Stop() end
- if animTrack2.IsPlaying then animTrack2:Stop() end
- if animTrack3.IsPlaying then animTrack3:Stop() end
- end
- game:GetService("RunService").Heartbeat:Connect(function()
- if humanoid.MoveDirection.Magnitude == 0 then
- playIdleAnimations()
- else
- stopIdleAnimations()
- end
- end)
- workspace.npio444_1.Humanoid.WalkSpeed = 8
- local animation = Instance.new("Animation")
- animation.AnimationId = "rbxassetid://48146273"
- local animTrack = humanoid:LoadAnimation(animation)
- local walk2 = Instance.new("Animation")
- walk2.AnimationId = "http://www.roblox.com/asset/?id=180436334"
- local animWalk2 = humanoid:LoadAnimation(walk2)
- local walk = Instance.new("Animation")
- walk.AnimationId = "http://www.roblox.com/asset/?id=180426354"
- local animWalk = humanoid:LoadAnimation(walk)
- animWalk2:AdjustSpeed(0.3)
- animWalk:AdjustSpeed(0.3)
- local function playAnimations()
- if not animTrack.IsPlaying then
- animTrack:Play()
- task.delay(animTrack.Length - 1.6, function()
- if animTrack.IsPlaying then
- animTrack:AdjustSpeed(0)
- end
- end)
- end
- if not animWalk2.IsPlaying then
- animWalk2:Play()
- end
- if not animWalk.IsPlaying then
- animWalk:Play()
- end
- end
- local function stopAnimations()
- animTrack:Stop()
- animWalk2:Stop()
- animWalk:Stop()
- end
- humanoid.Running:Connect(function(speed)
- if speed > 1 then
- playAnimations()
- else
- stopAnimations()
- end
- end)
- --This is btw message from me:CREATED WITH CHAT GPT
Advertisement
Add Comment
Please, Sign In to add comment