Zack121212

Untitled

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