Advertisement
Blazeeeeeeeeeeeeeeee

Untitled

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