Advertisement
astronaut32

kit

Oct 15th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.62 KB | None | 0 0
  1. --Runs with no error. Still no actual script running--
  2. wait(0.016666666666667)
  3. local Player = game.Players.localPlayer
  4. local Character = Player.Character
  5. local red = 255
  6. local green = 255
  7. local blue = 255
  8. local Humanoid = Character.Humanoid
  9. local mouse = Player:GetMouse()
  10. local m = Instance.new("Model", Character)
  11. m.Name = "WeaponModel"
  12. local LeftArm = Character["Left Arm"]
  13. local RightArm = Character["Right Arm"]
  14. local LeftLeg = Character["Left Leg"]
  15. local RightLeg = Character["Right Leg"]
  16. local Head = Character.Head
  17. local Torso = Character.Torso
  18. local cam = game.Workspace.CurrentCamera
  19. local RootPart = Character.HumanoidRootPart
  20. local RootJoint = RootPart.RootJoint
  21. local equipped = false
  22. local attack = false
  23. local Anim = "Idle"
  24. local idle = 0
  25. local attacktype = 1
  26. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  27. local velocity = RootPart.Velocity.y
  28. local sine = 0
  29. local change = 1
  30. local grabbed = false
  31. local cn = CFrame.new
  32. local mr = math.rad
  33. local angles = CFrame.Angles
  34. local ud = UDim2.new
  35. local c3 = Color3.new
  36. local lim = 0
  37. local st = 0
  38. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  39. local attacktype = 1
  40. local ZTarget, RocketTarget = nil, nil
  41. local euler = CFrame.fromEulerAnglesXYZ
  42. clerp = function(a, b, t)
  43. local qa = {QuaternionFromCFrame(a)}
  44. local qb = {QuaternionFromCFrame(b)}
  45. local ax, ay, az = a.x, a.y, a.z
  46. local bx, by, bz = b.x, b.y, b.z
  47. local _t = 1 - t
  48. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  49. end
  50. QuaternionFromCFrame = function(cf)
  51. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  52. local trace = m00 + m11 + m22
  53. if trace > 0 then
  54. local s = math.sqrt(1 + trace)
  55. local recip = 0.5 / s
  56. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  57. else
  58. do
  59. local i = 0
  60. if m00 < m11 then
  61. i = 1
  62. end
  63. if i == 0 and m00 or m11 < m22 then
  64. i = 2
  65. end
  66. if i == 0 then
  67. local s = math.sqrt(m00 - m11 - m22 + 1)
  68. local recip = 0.5 / s
  69. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  70. else
  71. do
  72. if i == 1 then
  73. local s = math.sqrt(m11 - m22 - m00 + 1)
  74. local recip = 0.5 / s
  75. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  76. else
  77. do
  78. if i == 2 then
  79. local s = math.sqrt(m22 - m00 - m11 + 1)
  80. local recip = 0.5 / s
  81. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  82. end
  83. end
  84. end
  85. end
  86. end
  87. end
  88. end
  89. end
  90. QuaternionToCFrame = function(px, py, pz, x, y, z, w)
  91. local xs, ys, zs = x + x, y + y, z + z
  92. local wx, wy, wz = w * xs, w * ys, w * zs
  93. local xx = x * xs
  94. local xy = x * ys
  95. local xz = x * zs
  96. local yy = y * ys
  97. local yz = y * zs
  98. local zz = z * zs
  99. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  100. end
  101. QuaternionSlerp = function(a, b, t)
  102. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  103. local startInterp, finishInterp = nil, nil
  104. if cosTheta >= 0.0001 then
  105. if 1 - cosTheta > 0.0001 then
  106. local theta = math.acos(cosTheta)
  107. local invSinTheta = 1 / math.sin(theta)
  108. startInterp = math.sin((1 - t) * theta) * invSinTheta
  109. finishInterp = math.sin(t * theta) * invSinTheta
  110. else
  111. do
  112. startInterp = 1 - t
  113. finishInterp = t
  114. if 1 + cosTheta > 0.0001 then
  115. local theta = math.acos(-cosTheta)
  116. local invSinTheta = 1 / math.sin(theta)
  117. startInterp = math.sin((t - 1) * theta) * invSinTheta
  118. finishInterp = math.sin(t * theta) * invSinTheta
  119. else
  120. do
  121. startInterp = t - 1
  122. finishInterp = t
  123. return a[1] * (startInterp) + b[1] * finishInterp, a[2] * (startInterp) + b[2] * finishInterp, a[3] * (startInterp) + b[3] * finishInterp, a[4] * (startInterp) + b[4] * finishInterp
  124. end
  125. end
  126. end
  127. end
  128. end
  129. end
  130. rayCast = function(Position, Direction, Range, Ignore)
  131. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  132. end
  133. local v = game.Players.localPlayer
  134. local torso = v.Character.Torso
  135. local check = v.Character:FindFirstChild("kit")
  136. wait(1)
  137. local p = Instance.new("Part", v.Character)
  138. p.Name = "kit"
  139. p.Anchored = true
  140. p.Transparency = 0
  141. p.Material = "Plastic"
  142. p.CanCollide = false
  143. p.TopSurface = 0
  144. p.BottomSurface = 0
  145. p.Size = Vector3.new(0.2, 0.2, 0.2)
  146. p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  147. local msh = Instance.new("SpecialMesh", p)
  148. msh.Scale = Vector3.new(-2, 2, 2)
  149. msh.MeshId = "http://www.roblox.com/asset/?id=188635159"
  150. msh.TextureId = "http://www.roblox.com/asset/?id=188539332"
  151. msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  152. local pn = Instance.new("Part", v.Character.kit)
  153. pn.Name = "tail"
  154. pn.Anchored = true
  155. pn.Transparency = 0
  156. pn.Material = "Plastic"
  157. pn.CanCollide = false
  158. pn.TopSurface = 0
  159. pn.BottomSurface = 0
  160. pn.Size = Vector3.new(5, 3, 3)
  161. pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  162. local mshn = Instance.new("SpecialMesh", pn)
  163. mshn.Scale = Vector3.new(2, 2, 2)
  164. mshn.MeshId = "http://www.roblox.com/asset/?id=188635159"
  165. mshn.TextureId = "http://www.roblox.com/asset/?id=188539332"
  166. mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  167. local pn3 = Instance.new("Part", v.Character.kit)
  168. pn3.Name = "tail"
  169. pn3.Anchored = true
  170. pn3.Transparency = 0
  171. pn3.Material = "Plastic"
  172. pn3.CanCollide = false
  173. pn3.TopSurface = 0
  174. pn3.BottomSurface = 0
  175. pn3.Size = Vector3.new(0.2, 0.2, 0.2)
  176. pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  177. local mshn3 = Instance.new("SpecialMesh", pn3)
  178. mshn3.Scale = Vector3.new(2, 2, 2)
  179. mshn3.MeshId = "http://www.roblox.com/asset/?id=188635159"
  180. mshn3.TextureId = "http://www.roblox.com/asset/?id=188539332"
  181. mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  182. local pn4 = Instance.new("Part", v.Character.kit)
  183. pn4.Name = "tail"
  184. pn4.Anchored = true
  185. pn4.Transparency = 0
  186. pn4.Material = "Plastic"
  187. pn4.CanCollide = false
  188. pn4.TopSurface = 0
  189. pn4.BottomSurface = 0
  190. pn4.Size = Vector3.new(0.2, 0.2, 0.2)
  191. pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  192. local mshn4 = Instance.new("SpecialMesh", pn4)
  193. mshn4.Scale = Vector3.new(-2, 2, 2)
  194. mshn4.MeshId = "http://www.roblox.com/asset/?id=188635159"
  195. mshn4.TextureId = "http://www.roblox.com/asset/?id=188539332"
  196. mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  197. local pn5 = Instance.new("Part", v.Character.kit)
  198. pn5.Name = "tail"
  199. pn5.Anchored = true
  200. pn5.Transparency = 0
  201. pn5.Material = "Plastic"
  202. pn5.CanCollide = false
  203. pn5.TopSurface = 0
  204. pn5.BottomSurface = 0
  205. pn5.Size = Vector3.new(0.2, 0.2, 0.2)
  206. pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  207. local mshn5 = Instance.new("SpecialMesh", pn5)
  208. mshn5.Scale = Vector3.new(2, 2, 2)
  209. mshn5.MeshId = "http://www.roblox.com/asset/?id=188635159"
  210. mshn5.TextureId = "http://www.roblox.com/asset/?id=188539332"
  211. mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  212. local pn6 = Instance.new("Part", v.Character.kit)
  213. pn6.Name = "tail"
  214. pn6.Anchored = true
  215. pn6.Transparency = 0
  216. pn6.Material = "Plastic"
  217. pn6.CanCollide = false
  218. pn6.TopSurface = 0
  219. pn6.BottomSurface = 0
  220. pn6.Size = Vector3.new(0.2, 0.2, 0.2)
  221. pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  222. local mshn6 = Instance.new("SpecialMesh", pn6)
  223. mshn6.Scale = Vector3.new(2, 2, 2)
  224. mshn6.MeshId = "http://www.roblox.com/asset/?id=188635159"
  225. mshn6.TextureId = "http://www.roblox.com/asset/?id=188539332"
  226. mshn6.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  227. local pn7 = Instance.new("Part", v.Character.kit)
  228. pn7.Name = "tail"
  229. pn7.Anchored = true
  230. pn7.Transparency = 0
  231. pn7.Material = "Plastic"
  232. pn7.CanCollide = false
  233. pn7.TopSurface = 0
  234. pn7.BottomSurface = 0
  235. pn7.Size = Vector3.new(0.2, 0.2, 0.2)
  236. pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  237. local mshn7 = Instance.new("SpecialMesh", pn7)
  238. mshn7.Scale = Vector3.new(2, 2, 2)
  239. mshn7.MeshId = "http://www.roblox.com/asset/?id=188635159"
  240. mshn7.TextureId = "http://www.roblox.com/asset/?id=188539332"
  241. mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  242. local pn8 = Instance.new("Part", v.Character.kit)
  243. pn8.Name = "tail"
  244. pn8.Anchored = true
  245. pn8.Transparency = 0
  246. pn8.Material = "Plastic"
  247. pn8.CanCollide = false
  248. pn8.TopSurface = 0
  249. pn8.BottomSurface = 0
  250. pn8.Size = Vector3.new(0.2, 0.2, 0.2)
  251. pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  252. local mshn8 = Instance.new("SpecialMesh", pn8)
  253. mshn8.Scale = Vector3.new(-2, 2, 2)
  254. mshn8.MeshId = "http://www.roblox.com/asset/?id=188635159"
  255. mshn8.TextureId = "http://www.roblox.com/asset/?id=188539332"
  256. mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  257. local pn9 = Instance.new("Part", v.Character.kit)
  258. pn9.Name = "tail"
  259. pn9.Anchored = true
  260. pn9.Transparency = 0
  261. pn9.Material = "Plastic"
  262. pn9.CanCollide = false
  263. pn9.TopSurface = 0
  264. pn9.BottomSurface = 0
  265. pn9.Size = Vector3.new(0.2, 0.2, 0.2)
  266. pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  267. local mshn9 = Instance.new("SpecialMesh", pn9)
  268. mshn9.Scale = Vector3.new(-2, 2, 2)
  269. mshn9.MeshId = "http://www.roblox.com/asset/?id=188635159"
  270. mshn9.TextureId = "http://www.roblox.com/asset/?id=188539332"
  271. mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  272. local pn0 = Instance.new("Part", v.Character.kit)
  273. pn0.Name = "ears"
  274. pn0.Anchored = true
  275. pn0.Transparency = 0
  276. pn0.Material = "Plastic"
  277. pn0.CanCollide = false
  278. pn0.TopSurface = 0
  279. pn0.BottomSurface = 0
  280. pn0.Size = Vector3.new(0.2, 0.2, 0.2)
  281. pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  282. local mshn0 = Instance.new("SpecialMesh", pn0)
  283. mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
  284. mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
  285. mshn0.TextureId = "http://www.roblox.com/asset/?id=50657528"
  286. mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
  287. p.Anchored = false
  288. local motor1 = Instance.new("Weld", p)
  289. motor1.Part0 = p
  290. motor1.Part1 = torso
  291. motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  292. motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  293. pn.Anchored = false
  294. local motor2 = Instance.new("Weld", pn)
  295. motor2.Part0 = pn
  296. motor2.Part1 = torso
  297. motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  298. motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  299. pn3.Anchored = false
  300. local motor3 = Instance.new("Weld", pn3)
  301. motor3.Part0 = pn3
  302. motor3.Part1 = torso
  303. motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  304. motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  305. pn4.Anchored = false
  306. local motor4 = Instance.new("Weld", pn4)
  307. motor4.Part0 = pn4
  308. motor4.Part1 = torso
  309. motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  310. motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  311. pn5.Anchored = false
  312. local motor5 = Instance.new("Weld", pn5)
  313. motor5.Part0 = pn5
  314. motor5.Part1 = torso
  315. motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  316. motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  317. pn6.Anchored = false
  318. local motor6 = Instance.new("Weld", pn6)
  319. motor6.Part0 = pn6
  320. motor6.Part1 = torso
  321. motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  322. motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  323. pn7.Anchored = false
  324. local motor7 = Instance.new("Weld", pn7)
  325. motor7.Part0 = pn7
  326. motor7.Part1 = torso
  327. motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  328. motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  329. pn8.Anchored = false
  330. local motor8 = Instance.new("Weld", pn8)
  331. motor8.Part0 = pn8
  332. motor8.Part1 = torso
  333. motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  334. motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  335. pn9.Anchored = false
  336. local motor9 = Instance.new("Weld", pn9)
  337. motor9.Part0 = pn9
  338. motor9.Part1 = torso
  339. motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  340. motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  341. pn0.Anchored = false
  342. local motor0 = Instance.new("Weld", pn0)
  343. motor0.Part0 = pn0
  344. motor0.Part1 = v.Character.Head
  345. motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  346. game:GetService("RunService").Stepped:connect(function()
  347. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  348. velocity = RootPart.Velocity.y
  349. sine = sine + change
  350. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  351. if equipped == true or equipped == false then
  352. if RootPart.Velocity.y > 1 and hit == nil then
  353. Anim = "Jump"
  354. if attack == false then
  355. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  356. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  357. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-110 + 0 * math.cos(sine / 25))), 0.1)
  358. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(110 + 0 * math.cos(sine / 25))), 0.1)
  359. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  360. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  361. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
  362. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  363. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
  364. end
  365. else
  366. if RootPart.Velocity.y < -1 and hit == nil then
  367. Anim = "Fall"
  368. if attack == false then
  369. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  370. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  371. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  372. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  373. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  374. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  375. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
  376. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  377. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
  378. end
  379. else
  380. if Torsovelocity < 1 and hit ~= nil then
  381. Anim = "Idle"
  382. if attack == false then
  383. change = 1
  384. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-5 + 5 * math.cos(sine / 50)), math.rad(0 + 5 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  385. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 70)), math.rad(0 + -5 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  386. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 80)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(-50 + 0 * math.cos(sine / 25))), 0.1)
  387. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 40)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(-40 + 0 * math.cos(sine / 25))), 0.1)
  388. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 60)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(40 + 0 * math.cos(sine / 25))), 0.1)
  389. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 35)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
  390. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 70)), math.rad(0 + 5 * math.cos(sine / 35)), math.rad(-45 + 0 * math.cos(sine / 25))), 0.1)
  391. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 55)), math.rad(0 + 5 * math.cos(sine / 55)), math.rad(-10 + 0 * math.cos(sine / 25))), 0.1)
  392. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 65)), math.rad(0 + 5 * math.cos(sine / 60)), math.rad(35 + 0 * math.cos(sine / 25))), 0.1)
  393. end
  394. else
  395. if Torsovelocity > 2 and hit ~= nil then
  396. Anim = "Walk"
  397. if attack == false then
  398. motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  399. motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  400. motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  401. motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  402. motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  403. motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  404. motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
  405. motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  406. motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
  407. end
  408. end
  409. end
  410. end
  411. end
  412. end
  413. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement