Advertisement
HenloMyDude

SpiderThingy

Aug 15th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. local plr = owner
  10. local char = plr.Character
  11. local normalanim = true
  12. local root = char.HumanoidRootPart
  13. local rootj = root.RootJoint
  14. local maincolor = BrickColor.new("Really black")
  15. local RS = char.Torso["Right Shoulder"]
  16. local LS = char.Torso["Left Shoulder"]
  17. local RH = char.Torso["Right Hip"]
  18. local LH = char.Torso["Left Hip"]
  19. local neck = char.Torso["Neck"]
  20.  
  21. for _,v in pairs (char:children()) do
  22. if v:IsA("Part") and v.Name ~= "Head" then
  23. v.Transparency = 1
  24. if v:IsA("Part") then
  25. v.BrickColor = BrickColor.new("Really black")
  26. end
  27. end
  28. char.Head.BrickColor = BrickColor.new("Institutional white")
  29. char.Head.Transparency = 0.9
  30. char.Head.Mesh.Scale = Vector3.new(0.001, 0.001, 0.001)
  31. if v:IsA("Accessory") or v:IsA("Hat") or v:IsA("Hair") then
  32. v:Destroy()
  33. end
  34. end
  35.  
  36. change = 1
  37. sine = 0
  38. Cos = math.cos
  39.  
  40. leg1 = Instance.new("Part",char)
  41. leg1.Name = "Leg1"
  42. leg1.BrickColor = maincolor
  43. leg1.Size = Vector3.new(1, 7, 1)
  44. leg1.CanCollide = false
  45. leg1w = Instance.new("Weld",leg1)
  46. leg1w.Part0 = leg1
  47. leg1w.Part1 = root
  48.  
  49. leg2 = Instance.new("Part",char)
  50. leg2.Name = "Leg2"
  51. leg2.BrickColor = maincolor
  52. leg2.Size = Vector3.new(1, 7, 1)
  53. leg2.CanCollide = false
  54. leg2w = Instance.new("Weld",leg1)
  55. leg2w.Part0 = leg2
  56. leg2w.Part1 = root
  57.  
  58. leg3 = Instance.new("Part",char)
  59. leg3.Name = "Leg3"
  60. leg3.BrickColor = maincolor
  61. leg3.Size = Vector3.new(1, 7, 1)
  62. leg3.CanCollide = false
  63. leg3w = Instance.new("Weld",leg1)
  64. leg3w.Part0 = leg3
  65. leg3w.Part1 = root
  66.  
  67. leg4 = Instance.new("Part",char)
  68. leg4.Name = "Leg4"
  69. leg4.BrickColor = maincolor
  70. leg4.Size = Vector3.new(1, 7, 1)
  71. leg4.CanCollide = false
  72. leg4w = Instance.new("Weld",leg1)
  73. leg4w.Part0 = leg4
  74. leg4w.Part1 = root
  75.  
  76. leg5 = Instance.new("Part",char)
  77. leg5.Name = "Leg5"
  78. leg5.BrickColor = maincolor
  79. leg5.Size = Vector3.new(1, 7, 1)
  80. leg5.CanCollide = false
  81. leg5w = Instance.new("Weld",leg1)
  82. leg5w.Part0 = leg5
  83. leg5w.Part1 = root
  84.  
  85. leg6 = Instance.new("Part",char)
  86. leg6.Name = "Leg6"
  87. leg6.BrickColor = maincolor
  88. leg6.Size = Vector3.new(1, 7, 1)
  89. leg6.CanCollide = false
  90. leg6w = Instance.new("Weld",leg1)
  91. leg6w.Part0 = leg6
  92. leg6w.Part1 = root
  93.  
  94. leg7 = Instance.new("Part",char)
  95. leg7.Name = "Leg7"
  96. leg7.BrickColor = maincolor
  97. leg7.Size = Vector3.new(1, 7, 1)
  98. leg7.CanCollide = false
  99. leg7w = Instance.new("Weld",leg1)
  100. leg7w.Part0 = leg7
  101. leg7w.Part1 = root
  102.  
  103. leg8 = Instance.new("Part",char)
  104. leg8.Name = "Leg8"
  105. leg8.BrickColor = maincolor
  106. leg8.Size = Vector3.new(1, 7, 1)
  107. leg8.CanCollide = false
  108. leg8w = Instance.new("Weld",leg1)
  109. leg8w.Part0 = leg8
  110. leg8w.Part1 = root
  111.  
  112. ftors = Instance.new("Part",char)
  113. ftors.Name = "Tors"
  114. ftors.BrickColor = maincolor
  115. ftors.Size = Vector3.new(3, 1.5, 7.25)
  116. ftors.CanCollide = false
  117. torsw = Instance.new("Weld",ftors)
  118. torsw.Part0 = ftors
  119. torsw.Part1 = root
  120.  
  121. for _,v in pairs (char:children()) do
  122. if v:IsA("Part") then
  123. v.Material = "SmoothPlastic"
  124. end
  125. end
  126.  
  127. char.Humanoid.WalkSpeed = 10
  128.  
  129. while game:GetService("RunService").Heartbeat:Wait() do
  130. if normalanim then
  131. sine = sine + change
  132. end
  133. 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)
  134. if char.HumanoidRootPart.Velocity.Magnitude > 1 and touchfloor then
  135. animpose = "Walking"
  136. elseif char.HumanoidRootPart.Velocity.Y > 0.5 and touchfloor == nil then
  137. animpose = "Jumping"
  138. elseif char.HumanoidRootPart.Velocity.Y < 0.5 and touchfloor == nil then
  139. animpose = "Falling"
  140. else
  141. animpose = "Idle"
  142. end
  143. if animpose == "Idle" and normalanim then
  144. torsw.C0 = torsw.C0:Lerp(CFrame.new(0, -3.25 + 0.1 * Cos(sine / 25), -0.5), 0.1)
  145. leg1w.C0 = leg1w.C0:Lerp(CFrame.new(-2.5, 0.25, 2) * CFrame.Angles(0, 0, -0.2 + 0.05 * Cos(sine / 25)), 0.1)
  146. leg2w.C0 = leg2w.C0:Lerp(CFrame.new(-2.5, 0.25, 0.5) * CFrame.Angles(0, 0, -0.2 + 0.05 * Cos(sine / 25)), 0.1)
  147. leg3w.C0 = leg3w.C0:Lerp(CFrame.new(-2.5, 0.25, -1) * CFrame.Angles(0, 0, -0.2 + 0.05 * Cos(sine / 25)), 0.1)
  148. leg4w.C0 = leg4w.C0:Lerp(CFrame.new(-2.5, 0.25, -2.5) * CFrame.Angles(0, 0, -0.2 + 0.05 * Cos(sine / 25)), 0.1)
  149. leg5w.C0 = leg5w.C0:Lerp(CFrame.new(2.5, 0.25, 2) * CFrame.Angles(0, 0, 0.2 + 0.05 * Cos(sine / 25)), 0.1)
  150. leg6w.C0 = leg6w.C0:Lerp(CFrame.new(2.5, 0.25, 0.5) * CFrame.Angles(0, 0, 0.2 + 0.05 * Cos(sine / 25)), 0.1)
  151. leg7w.C0 = leg7w.C0:Lerp(CFrame.new(2.5, 0.25, -1) * CFrame.Angles(0, 0, 0.2 + 0.05 * Cos(sine / 25)), 0.1)
  152. leg8w.C0 = leg8w.C0:Lerp(CFrame.new(2.5, 0.25, -2.5) * CFrame.Angles(0, 0,0.2 + 0.05 * Cos(sine / 25)), 0.1)
  153. elseif animpose == "Walking" and normalanim then
  154. torsw.C0 = torsw.C0:Lerp(CFrame.new(0, -3.25 + 0.1 * Cos(sine / 25), -0.5), 0.1)
  155. leg1w.C0 = leg1w.C0:Lerp(CFrame.new(-2, 0.25 + -0.25 * Cos(sine / 12), 2) * CFrame.Angles(0 + 0.25 * Cos(sine / 12), 0, 0), 0.1)
  156. leg2w.C0 = leg2w.C0:Lerp(CFrame.new(-2, 0.25 + 0.25 * Cos(sine / 12), -0.25) * CFrame.Angles(0 + -0.25 * Cos(sine / 12), 0, 0), 0.1)
  157. leg3w.C0 = leg3w.C0:Lerp(CFrame.new(-2, 0.25 + 1 * Cos(sine / 12), -1.75) * CFrame.Angles(0 + 0.25 * Cos(sine / 12), 0, 0), 0.1)
  158. leg4w.C0 = leg4w.C0:Lerp(CFrame.new(-2, 0.25 + -0 * Cos(sine / 12), -3.25) * CFrame.Angles(0 + -0.25 * Cos(sine / 12), 0, 0), 0.1)
  159. torsw.C0 = torsw.C0:Lerp(CFrame.new(0, -3.25 + 0.1 * Cos(sine / 25), -0.5), 0.1)
  160. leg5w.C0 = leg5w.C0:Lerp(CFrame.new(2, 0.25 + 0.25 * Cos(sine / 12), 1.5) * CFrame.Angles(0 + 0.25 * Cos(sine / 12), 0, 0), 0.1)
  161. leg6w.C0 = leg6w.C0:Lerp(CFrame.new(2, 0.25 + -0.25 * Cos(sine / 12), -0) * CFrame.Angles(0 + -0.25 * Cos(sine / 12), 0, 0), 0.1)
  162. leg7w.C0 = leg7w.C0:Lerp(CFrame.new(2, 0.25 + 0.25 * Cos(sine / 12), -1.25) * CFrame.Angles(0 + 0.25 * Cos(sine / 12), 0, 0), 0.1)
  163. leg8w.C0 = leg8w.C0:Lerp(CFrame.new(2, 0.25 + -0.25 * Cos(sine / 12), -2.5) * CFrame.Angles(0 + -0.25 * Cos(sine / 12), 0, 0), 0.1)
  164. elseif animpose == "Jumping" and normalanim then
  165.  
  166. elseif animpose == "Falling" and normalanim then
  167.  
  168. end
  169. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement