roblox r6 animation script local Character = script.Parent local Humanoid = Character:WaitForChild("Humanoid") local RootPart = Character:WaitForChild("HumanoidRootPart") local Animator = Humanoid:WaitForChild("Animator") local currentAnim = "" local currentAnimTrack = nil local animationTable = {} -- Preload animations local animations = { roblox r6 animation script PasteShr roblox r6 animation script -- here put your own anim iDs idleAnimation = "http://www.roblox.com/asset/?id=180435571", walkAnimation = "http://www.roblox.com/asset/?id=180426354", jumpAnimation = "http://www.roblox.com/asset/?id=125750702", fallAnimation = "http://www.roblox.com/asset/?id=180436148", climbAnimation = "http://www.roblox.com/asset/?id=180436334", sitAnimation = "http://www.roblox.com/asset/?id=178130996", -- you can add your own animations, remember that they should play when humanoid enters a certain state or situation } roblox r6 animation script How to get it for free? roblox r6 animation script for animName, animId in pairs(animations) do local anim = Instance.new("Animation") anim.AnimationId = animId animationTable[animName] = anim end -- Stop all animations local function StopAllAnimations() if currentAnimTrack then roblox r6 animation script How to get it? roblox r6 animation script currentAnimTrack:Stop() currentAnimTrack:Destroy() currentAnimTrack = nil end end -- Play animation by name local function PlayAnimation(animName) if animName == currentAnim then return end StopAllAnimations() roblox r6 animation script PasteShr roblox r6 animation script currentAnim = animName currentAnimTrack = Animator:LoadAnimation(animationTable[animName]) currentAnimTrack:Play() end local function onSeated() PlayAnimation("sitAnimation") end -- Humanoid state change functions roblox r6 animation script How to get it? roblox r6 animation script local function onJumping() PlayAnimation("jumpAnimation") end local function onClimbing(speed) if math.abs(speed) > 0.2 then if currentAnim ~= "climbAnimation" then PlayAnimation("climbAnimation") elseif currentAnimTrack then currentAnimTrack:AdjustSpeed(1) roblox r6 animation script How to get it for free? roblox r6 animation script end else if currentAnimTrack then currentAnimTrack:AdjustSpeed(0) end end end local function onFalling() PlayAnimation("fallAnimation") roblox r6 animation script How to get it for free? roblox r6 animation script end local function onRunning(speed) if speed > 0.2 then PlayAnimation("walkAnimation") else PlayAnimation("idleAnimation") end end roblox r6 animation script PasteShr roblox r6 animation script -- Connect humanoid state events Humanoid.Seated:Connect(function() StopAllAnimations() PlayAnimation("sitAnimation") end) -- no swim anim, uses running animation instead Humanoid.Swimming:Connect(onRunning) Humanoid.Running:Connect(onRunning) roblox r6 animation script How to dowload it? roblox r6 animation script Humanoid.FreeFalling:Connect(onFalling) Humanoid.Climbing:Connect(onClimbing) Humanoid.Jumping:Connect(onJumping) Humanoid.Died:Connect(function() StopAllAnimations() currentAnim = "" end) roblox r6 animation script