Advertisement
HenloMyDude

r15 animation pack 1

Aug 19th, 2019
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1.  
  2.  
  3. plr = owner
  4. char = plr.Character
  5. char.Animate.idle.Animation1.AnimationId = "rbxassetid://0"
  6. char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://0"
  7. hum = char.Humanoid
  8.  
  9. local idleanim = Instance.new("Animation")
  10. idleanim.Name = "Roblox Idle Animation"
  11. idleanim.AnimationId = "http://www.roblox.com/asset/?id=0"
  12. local idleanimplay = hum:LoadAnimation(idleanim)
  13. idleanimplay:Play()
  14. wait(0.1)
  15. if hum:FindFirstChild("Animator") then
  16. hum.Animator:Destroy()
  17. end
  18. tors = char.UpperTorso
  19.  
  20. RS = Instance.new("Weld",tors)
  21. RS.Part0 = char.RightUpperArm
  22. RS.Part1 = tors
  23.  
  24. LS = Instance.new("Weld",tors)
  25. LS.Part0 = char.LeftUpperArm
  26. LS.Part1 = tors
  27.  
  28. RH = Instance.new("Weld",tors)
  29. RH.Part0 = char.RightUpperLeg
  30. RH.Part1 = tors
  31.  
  32. LH = Instance.new("Weld",tors)
  33. LH.Part0 = char.LeftUpperLeg
  34. LH.Part1 = tors
  35.  
  36. RH2 = Instance.new("Weld",tors)
  37. RH2.Part0 = char.RightLowerLeg
  38. RH2.Part1 = tors
  39.  
  40. LH2 = Instance.new("Weld",tors)
  41. LH2.Part0 = char.LeftLowerLeg
  42. LH2.Part1 = tors
  43.  
  44. sine=0
  45. Cos = math.cos
  46. normalanim = true
  47.  
  48. grenf1 = LS.C0:Lerp(CFrame.new(1.5, 0.5, 0.25) * CFrame.Angles(67, 0, 0),0.15)
  49.  
  50. while game:GetService("RunService").Heartbeat:Wait() do
  51. if normalanim then
  52. sine = sine + 1
  53. end
  54. 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)
  55. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor and hum.Sit == false then
  56. animpose = "Walking"
  57. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil and hum.Sit == false then
  58. animpose = "Jumping"
  59. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil and hum.Sit == false then
  60. animpose = "Falling"
  61. elseif hum.Sit == true and touchfloor then
  62. animpose = "Sit"
  63. hum.Climbing:connect(function()
  64. animpose = "Climbing"
  65. end)
  66. else
  67. animpose = "Idle"
  68. end
  69. if animpose == "Idle" and normalanim then
  70. RS.C0 = RS.C0:Lerp(CFrame.new(-1, -0.5, -0.25) * CFrame.Angles(-45, -45, 0),0.15)
  71. LS.C0 = LS.C0:Lerp(CFrame.new(0.25, 0.25, 1) * CFrame.Angles(-45, 0, -45),0.15)
  72. LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  73. RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
  74. LH2.C0 = LH.C0:Lerp(CFrame.new(-0.5, 6.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
  75. RH2.C0 = RH.C0:Lerp(CFrame.new(0.5, 6.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
  76. elseif animpose == "Walking" and normalanim then
  77. RS.C0 = RS.C0:Lerp(CFrame.new(-1, -0.5, -0.25) * CFrame.Angles(-45, -45, 0),0.15)
  78. LS.C0 = LS.C0:Lerp(CFrame.new(0.25, 0.25, 1) * CFrame.Angles(-45, 0, -45),0.15)
  79. LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 1.5, 0) * CFrame.Angles(0 - 0.5 * Cos(sine / 5), 0, 0), 0.15)
  80. RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 1.5, 0) * CFrame.Angles(0 + 0.5 * Cos(sine / 5), 0, 0), 0.15)
  81. LH2.C0 = LH.C0:Lerp(CFrame.new(-0.5, 6.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
  82. RH2.C0 = RH.C0:Lerp(CFrame.new(0.5, 6.75, 0) * CFrame.Angles(0, 0, 0), 0.15)
  83. elseif animpose == "Jumping" and normalanim then
  84.  
  85. elseif animpose == "Falling" and normalanim then
  86.  
  87. elseif animpose == "Sit" and normalanim then
  88. RS.C0 = RS.C0:Lerp(CFrame.new(-1.5, -0.25, 0) * CFrame.Angles(0, 0, 0),0.15)
  89. LS.C0 = LS.C0:Lerp(CFrame.new(1.5, -0.25, 0) * CFrame.Angles(0, 0, 0),0.15)
  90. LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 0, -1.25) * CFrame.Angles(-90, 0, 0), 0.15)
  91. RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 0, -1.25) * CFrame.Angles(-90, 0, 0), 0.15)
  92. LH2.C0 = LH.C0:Lerp(CFrame.new(-0.5, 6.75, -0.5) * CFrame.Angles(0, 0, 0), 0.15)
  93. RH2.C0 = RH.C0:Lerp(CFrame.new(0.5, 6.75, -0.5) * CFrame.Angles(0, 0, 0), 0.15)
  94. elseif animpose == "Climbing" and normalanim then
  95. RS.C0 = RS.C0:Lerp(CFrame.new(-1.5, -0.25, 0) * CFrame.Angles(0, 0, 0),0.15)
  96. LS.C0 = LS.C0:Lerp(CFrame.new(1.5, -0.25, 0) * CFrame.Angles(0, 0, 0),0.15)
  97. LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 0, -1.25) * CFrame.Angles(-90, 0, 0), 0.15)
  98. RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 0, -1.25) * CFrame.Angles(-90, 0, 0), 0.15)
  99. LH2.C0 = LH.C0:Lerp(CFrame.new(-0.5, 6.75, -0.5) * CFrame.Angles(0, 0, 0), 0.15)
  100. RH2.C0 = RH.C0:Lerp(CFrame.new(0.5, 6.75, -0.5) * CFrame.Angles(0, 0, 0), 0.15)
  101. end
  102. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement