Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- char = plr.Character
- char.Animate.idle.Animation1.AnimationId = "rbxassetid://0"
- char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://0"
- hum = char.Humanoid
- local idleanim = Instance.new("Animation")
- idleanim.Name = "Roblox Idle Animation"
- idleanim.AnimationId = "http://www.roblox.com/asset/?id=0"
- local idleanimplay = hum:LoadAnimation(idleanim)
- idleanimplay:Play()
- wait(0.1)
- if hum:FindFirstChild("Animator") then
- hum.Animator:Destroy()
- end
- tors = char.UpperTorso
- RS = Instance.new("Weld",tors)
- RS.Part0 = char.RightUpperArm
- RS.Part1 = tors
- LS = Instance.new("Weld",tors)
- LS.Part0 = char.LeftUpperArm
- LS.Part1 = tors
- RH = Instance.new("Weld",tors)
- RH.Part0 = char.RightUpperLeg
- RH.Part1 = tors
- LH = Instance.new("Weld",tors)
- LH.Part0 = char.LeftUpperLeg
- LH.Part1 = tors
- RH2 = Instance.new("Weld",tors)
- RH2.Part0 = char.RightLowerLeg
- RH2.Part1 = tors
- LH2 = Instance.new("Weld",tors)
- LH2.Part0 = char.LeftLowerLeg
- LH2.Part1 = tors
- sine=0
- Cos = math.cos
- normalanim = true
- grenf1 = LS.C0:Lerp(CFrame.new(1.5, 0.5, 0.25) * CFrame.Angles(67, 0, 0),0.15)
- while game:GetService("RunService").Heartbeat:Wait() do
- if normalanim then
- sine = sine + 1
- end
- local touchfloor = workspace:FindPartOnRay(Ray.new(char.HumanoidRootPart.CFrame.Position, ((CFrame.new(char.HumanoidRootPart.Position, char.HumanoidRootPart.Position - Vector3.new(0, 1, 0))).LookVector).Unit * 4), char)
- if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor and hum.Sit == false then
- animpose = "Walking"
- elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil and hum.Sit == false then
- animpose = "Jumping"
- elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil and hum.Sit == false then
- animpose = "Falling"
- elseif hum.Sit == true and touchfloor then
- animpose = "Sit"
- hum.Climbing:connect(function()
- animpose = "Climbing"
- end)
- else
- animpose = "Idle"
- end
- if animpose == "Idle" and normalanim then
- RS.C0 = RS.C0:Lerp(CFrame.new(-1, -0.5, -0.25) * CFrame.Angles(-45, -45, 0),0.15)
- LS.C0 = LS.C0:Lerp(CFrame.new(0.25, 0.25, 1) * CFrame.Angles(-45, 0, -45),0.15)
- LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
- RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
- LH2.C0 = LH.C0:Lerp(CFrame.new(-0.5, 6.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
- RH2.C0 = RH.C0:Lerp(CFrame.new(0.5, 6.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
- elseif animpose == "Walking" and normalanim then
- RS.C0 = RS.C0:Lerp(CFrame.new(-1, -0.5, -0.25) * CFrame.Angles(-45, -45, 0),0.15)
- LS.C0 = LS.C0:Lerp(CFrame.new(0.25, 0.25, 1) * CFrame.Angles(-45, 0, -45),0.15)
- LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 1.5, 0) * CFrame.Angles(0 - 0.5 * Cos(sine / 5), 0, 0), 0.15)
- RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 1.5, 0) * CFrame.Angles(0 + 0.5 * Cos(sine / 5), 0, 0), 0.15)
- LH2.C0 = LH.C0:Lerp(CFrame.new(-0.5, 6.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
- RH2.C0 = RH.C0:Lerp(CFrame.new(0.5, 6.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
- elseif animpose == "Jumping" and normalanim then
- elseif animpose == "Falling" and normalanim then
- elseif animpose == "Sit" and normalanim then
- RS.C0 = RS.C0:Lerp(CFrame.new(-1.5, -0.25, 0) * CFrame.Angles(0, 0, 0),0.15)
- LS.C0 = LS.C0:Lerp(CFrame.new(1.5, -0.25, 0) * CFrame.Angles(0, 0, 0),0.15)
- LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 0, -1.25) * CFrame.Angles(-90, 0, 0), 0.15)
- RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 0, -1.25) * CFrame.Angles(-90, 0, 0), 0.15)
- LH2.C0 = LH.C0:Lerp(CFrame.new(-0.5, 6.75, -0.5) * CFrame.Angles(0, 0, 0), 0.15)
- RH2.C0 = RH.C0:Lerp(CFrame.new(0.5, 6.75, -0.5) * CFrame.Angles(0, 0, 0), 0.15)
- elseif animpose == "Climbing" and normalanim then
- RS.C0 = RS.C0:Lerp(CFrame.new(-1.5, -0.25, 0) * CFrame.Angles(0, 0, 0),0.15)
- LS.C0 = LS.C0:Lerp(CFrame.new(1.5, -0.25, 0) * CFrame.Angles(0, 0, 0),0.15)
- LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 0, -1.25) * CFrame.Angles(-90, 0, 0), 0.15)
- RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 0, -1.25) * CFrame.Angles(-90, 0, 0), 0.15)
- LH2.C0 = LH.C0:Lerp(CFrame.new(-0.5, 6.75, -0.5) * CFrame.Angles(0, 0, 0), 0.15)
- RH2.C0 = RH.C0:Lerp(CFrame.new(0.5, 6.75, -0.5) * CFrame.Angles(0, 0, 0), 0.15)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement