Advertisement
nguyenjimbo

Untitled

Jul 8th, 2015
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.11 KB | None | 0 0
  1. local oc = oc or function(...) return ... end
  2. function weld(p0,p1,c0,c1,par)
  3. local w = Instance.new("Weld",p0 or par)
  4. w.Part0 = p0
  5. w.Part1 = p1
  6. w.C0 = c0 or CFrame.new()
  7. w.C1 = c1 or CFrame.new()
  8. return w
  9. end
  10. function lerp(a, b, t)
  11. return a + (b - a)*t
  12. end
  13. do
  14. local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
  15. local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs 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)) end
  16. local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end 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 end
  17. function clerp(a,b,t)
  18. local qa = {QuaternionFromCFrame(a)}
  19. local qb = {QuaternionFromCFrame(b)}
  20. local ax, ay, az = a.x, a.y, a.z
  21. local bx, by, bz = b.x, b.y, b.z
  22. local _t = 1-t
  23. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  24. end
  25. end
  26. local his = {}
  27. function ctween(tar,prop,c2,t,b)
  28. local function doIt()
  29. local now = tick()
  30. his[tar] = now
  31. local c1 = tar[prop]
  32. for i=1,t do
  33. if his[tar] ~= now then return end
  34. tar[prop] = clerp(c1,c2,1/t*i)
  35. wait(1/60)
  36. end
  37. end
  38. if b then coroutine.wrap(doIt)() else doIt() end
  39. end
  40. function tickwave(time,length,offset)
  41. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  42. end
  43. function playSound(id,parent,volume,pitch)
  44. local sound = Instance.new("Sound",parent or workspace)
  45. sound.SoundId = "http://www.roblox.com/asset?id="..id
  46. sound.Volume = volume or 1
  47. sound.Pitch = pitch or 1
  48. coroutine.wrap(function()
  49. wait()
  50. sound:Play()
  51. wait(10)
  52. sound:Stop()
  53. sound:Destroy()
  54. end)()
  55. return sound
  56. end
  57. local plr = game.Players.LocalPlayer
  58. local char = plr.Character
  59. local mouse = plr:GetMouse()
  60. local nk = char.Torso.Neck
  61. local nk0 = CFrame.new(0,1,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  62. local ra,la = char["Right Arm"], char["Left Arm"]
  63. ra:BreakJoints()
  64. la:BreakJoints()
  65. local rs = weld(char.Torso,ra,CFrame.new(1.25,.5,0), CFrame.new(-.25,.5,0),stuff)
  66. local ls = weld(char.Torso,la,CFrame.new(-1.25,.5,0), CFrame.new(.25,.5,0),stuff)
  67. ls.Part1.FrontSurface = "Hinge"
  68. rs.Part1.FrontSurface = "Hinge"
  69. local rs0 = rs.C0
  70. local ls0 = ls.C0
  71. local color1 = BrickColor.new("Dark gray")
  72. local color2 = BrickColor.new("Navy blue")
  73. local stuff = Instance.new("Model",char)
  74. pcall(function() char["Hammur"]:Destroy() end)
  75. stuff.Name = "Hammur"
  76. wait(.5)
  77. local handle = Instance.new("Part")
  78. handle.FormFactor = "Custom"
  79. handle.BrickColor = color1
  80. handle.Reflectance = .25
  81. handle.Size = Vector3.new(.5,5,.5)
  82. handle.TopSurface = "Smooth"
  83. handle.BottomSurface = "Smooth"
  84. handle.CanCollide = false
  85. handle.Parent = stuff
  86. local grip = weld(char["Right Arm"],handle,CFrame.new(0,-.95,0)*CFrame.Angles(math.rad(-90),0,0),CFrame.new(0,-1.4,0))
  87. local grip0 = grip.C0
  88. local hamend = handle:Clone()
  89. Instance.new("BlockMesh",hamend)
  90. hamend.Parent = stuff
  91. hamend.Size = Vector3.new(2,2,3.5)
  92. local hamwel = weld(handle,hamend,CFrame.new(0,3,0))
  93. local hamsd1 = hamend:Clone()
  94. hamsd1.Mesh.Scale = Vector3.new(1,1,1)
  95. hamsd1.Parent = stuff
  96. hamsd1.Size = Vector3.new(2.3,2.3,.3)
  97. weld(hamend,hamsd1,CFrame.new(0,0,1.75))
  98. local hamsd2 = hamsd1:Clone()
  99. hamsd2.Parent = stuff
  100. weld(hamend,hamsd2,CFrame.new(0,0,-1.75))
  101. local hamp = hamsd1:Clone()
  102. hamp.Parent = stuff
  103. hamp.Size = Vector3.new(.2,.2,3.5)
  104. weld(hamend,hamp,CFrame.new(.95,.95,0))
  105. hamp = hamp:Clone()
  106. hamp.Parent = stuff
  107. weld(hamend,hamp,CFrame.new(.95,-.95,0))
  108. hamp = hamp:Clone()
  109. hamp.Parent = stuff
  110. weld(hamend,hamp,CFrame.new(-.95,-.95,0))
  111. hamp = hamp:Clone()
  112. hamp.Parent = stuff
  113. weld(hamend,hamp,CFrame.new(-.95,.95,0))
  114. hamp = hamp:Clone()
  115. hamp.BrickColor = color2
  116. hamp.Reflectance = .2
  117. hamp.Size = Vector3.new(.2,.2,2.5)
  118. hamp.Parent = stuff
  119. weld(hamend,hamp,CFrame.new(0,.95,0))
  120. hamp = hamp:Clone()
  121. hamp.Parent = stuff
  122. weld(hamend,hamp,CFrame.new(0,-.95,0))
  123. hamp = hamp:Clone()
  124. hamp.Parent = stuff
  125. weld(hamend,hamp,CFrame.new(.95,0,0))
  126. hamp = hamp:Clone()
  127. hamp.Parent = stuff
  128. weld(hamend,hamp,CFrame.new(-.95,0,0))
  129. hamp = handle:Clone()
  130. hamp.BrickColor = color2
  131. hamp.Reflectance = .2
  132. hamp.Parent = stuff
  133. hamp.Size = Vector3.new(.4,.2,.4)
  134. Instance.new("CylinderMesh",hamp)
  135. weld(hamend,hamp,CFrame.new(0,-.955,1.2))
  136. hamp = hamp:Clone()
  137. hamp.Parent = stuff
  138. weld(hamend,hamp,CFrame.new(0,-.955,-1.2))
  139. hamp = hamp:Clone()
  140. hamp.Parent = stuff
  141. weld(hamend,hamp,CFrame.new(0,.955,1.2))
  142. hamp = hamp:Clone()
  143. hamp.Parent = stuff
  144. weld(hamend,hamp,CFrame.new(0,.955,-1.2))
  145. hamp = hamp:Clone()
  146. hamp.Parent = stuff
  147. weld(hamend,hamp,CFrame.new(.955,0,-1.2) * CFrame.Angles(0,0,math.rad(90)))
  148. hamp = hamp:Clone()
  149. hamp.Parent = stuff
  150. weld(hamend,hamp,CFrame.new(.955,0,1.2) * CFrame.Angles(0,0,math.rad(90)))
  151. hamp = hamp:Clone()
  152. hamp.Parent = stuff
  153. weld(hamend,hamp,CFrame.new(-.955,0,-1.2) * CFrame.Angles(0,0,math.rad(90)))
  154. hamp = hamp:Clone()
  155. hamp.Parent = stuff
  156. weld(hamend,hamp,CFrame.new(-.955,0,1.2) * CFrame.Angles(0,0,math.rad(90)))
  157. hamp = hamp:Clone()
  158. hamp.Parent = stuff
  159. weld(hamend,hamp,CFrame.new(.6,.955,0))
  160. hamp = hamp:Clone()
  161. hamp.Parent = stuff
  162. weld(hamend,hamp,CFrame.new(-.6,.955,0))
  163. hamp = hamp:Clone()
  164. hamp.Parent = stuff
  165. weld(hamend,hamp,CFrame.new(.6,-.955,0))
  166. hamp = hamp:Clone()
  167. hamp.Parent = stuff
  168. weld(hamend,hamp,CFrame.new(-.6,-.955,0))
  169. hamp = hamp:Clone()
  170. hamp.Parent = stuff
  171. weld(hamend,hamp,CFrame.new(-.955,.6,0) * CFrame.Angles(0,0,math.rad(90)))
  172. hamp = hamp:Clone()
  173. hamp.Parent = stuff
  174. weld(hamend,hamp,CFrame.new(-.955,-.6,0) * CFrame.Angles(0,0,math.rad(90)))
  175. hamp = hamp:Clone()
  176. hamp.Parent = stuff
  177. weld(hamend,hamp,CFrame.new(.955,.6,0) * CFrame.Angles(0,0,math.rad(90)))
  178. hamp = hamp:Clone()
  179. hamp.Parent = stuff
  180. weld(hamend,hamp,CFrame.new(.955,-.6,0) * CFrame.Angles(0,0,math.rad(90)))
  181. local luacyl = hamp:Clone()
  182. luacyl.BrickColor = BrickColor.Blue()
  183. luacyl.Parent = stuff
  184. luacyl.Mesh.Scale = Vector3.new(1,.2,1)
  185. luacyl.Size = Vector3.new(2,.2,2)
  186. weld(hamsd1,luacyl,CFrame.new(0,0,.14) * CFrame.Angles(math.rad(90),0,0))
  187. hamp = luacyl:Clone()
  188. hamp.BrickColor = BrickColor.White()
  189. hamp.Parent = stuff
  190. hamp.Size = Vector3.new(.7,.2,.7)
  191. weld(luacyl,hamp,CFrame.new(.35,.01,-.35))
  192. local luamoon = luacyl:Clone()
  193. luamoon.Parent = stuff
  194. luamoon.Size = Vector3.new(.7,.2,.7)
  195. local mnw = weld(luacyl,luamoon,CFrame.new(1.2,.02,-1.2))
  196. for r = 1,180,10 do
  197. local r2 = 2 * (math.pi/180*r)
  198. local l = hamsd1:Clone()
  199. l.Parent = stuff
  200. l.BrickColor = luacyl.BrickColor
  201. l.Size = Vector3.new(.3,.2,.2)
  202. l.Mesh.Scale = Vector3.new(1,.3,.3)
  203. weld(luacyl,l,CFrame.new(Vector3.new(math.sin(r2)*1.7,0,math.cos(r2)*1.7),Vector3.new()))
  204. light1=Instance.new("PointLight")
  205. light1.Brightness=.3
  206. light1.Color=Color3.new(.2,.2,255)
  207. light1.Range=10
  208. light1.Parent=luacyl
  209. end
  210. hamp = hamend:Clone()
  211. hamp.BrickColor = color2
  212. hamp.Reflectance = .2
  213. hamp.Size = Vector3.new(.2,.2,3.5)
  214. hamp.Mesh.Scale = Vector3.new(.25,.25,1)
  215. hamp.Parent = stuff
  216. weld(hamend,hamp,CFrame.new(-1.05,.95,0))
  217. hamp = hamp:Clone()
  218. hamp.Parent = stuff
  219. weld(hamend,hamp,CFrame.new(-.95,1.05,0))
  220. hamp = hamp:Clone()
  221. hamp.Parent = stuff
  222. weld(hamend,hamp,CFrame.new(1.05,.95,0))
  223. hamp = hamp:Clone()
  224. hamp.Parent = stuff
  225. weld(hamend,hamp,CFrame.new(.95,1.05,0))
  226. hamp = hamp:Clone()
  227. hamp.Parent = stuff
  228. weld(hamend,hamp,CFrame.new(1.05,-.95,0))
  229. hamp = hamp:Clone()
  230. hamp.Parent = stuff
  231. weld(hamend,hamp,CFrame.new(.95,-1.05,0))
  232. hamp = hamp:Clone()
  233. hamp.Parent = stuff
  234. weld(hamend,hamp,CFrame.new(-1.05,-.95,0))
  235. hamp = hamp:Clone()
  236. hamp.Parent = stuff
  237. weld(hamend,hamp,CFrame.new(-.95,-1.05,0))
  238. for x = -1,1 do
  239. for y = -1,1 do
  240. hamp = hamp:Clone()
  241. hamp.Mesh.Scale = Vector3.new(1,1,1)
  242. hamp.Size = Vector3.new(.5,.5,.2)
  243. hamp.Parent = stuff
  244. weld(hamsd2,hamp,CFrame.new(x*.7,y*.7,-.1))
  245. end
  246. end
  247. rs.C0 = rs0 * CFrame.Angles(math.rad(70),math.rad(50),math.rad(-20))
  248. ls.C0 = ls0 * CFrame.new(.4,.2,-.3) * CFrame.Angles(math.rad(110),math.rad(0),math.rad(00)) * CFrame.Angles(0,math.rad(60),0)
  249. function endScript()
  250. pcall(function() runcon:disconnect() end)
  251. pcall(function() kdcon:disconnect() end)
  252. pcall(function() kucon:disconnect() end)
  253. pcall(game.Destroy,stuff)
  254. pcall(game.Destroy,bg)
  255. pcall(game.Destroy,bv)
  256. end
  257. local spintime = 3
  258. local idling = true
  259. runcon = game:GetService("RunService").Stepped:connect(oc(function()
  260. if not stuff:IsDescendantOf(workspace) then
  261. endScript()
  262. end
  263. local an = (tick()%spintime)*360/spintime
  264. mnw.C0 = CFrame.Angles(0,math.rad(an),0) * CFrame.new(0,.04,1.7)
  265. if idling then
  266. rs.C0 = clerp(rs.C0,rs0 * CFrame.Angles(math.rad(70+tickwave(3,5)),math.rad(50),math.rad(-20)),.4)
  267. ls.C0 = clerp(ls.C0,ls0 * CFrame.new(.4,.2,-.3) * CFrame.Angles(math.rad(115+tickwave(3,5)),math.rad(0),math.rad(-5)) * CFrame.Angles(0,math.rad(60),0),.4)
  268. nk.C0 = clerp(nk.C0,nk0 * CFrame.Angles(tickwave(4,-.1),0,0),.4)
  269. grip.C0 = clerp(grip.C0,grip0,.4)
  270. end
  271. end))
  272. function cfot(tar,cf,t)
  273. coroutine.wrap(function()
  274. for i=1,t do
  275. tar.CFrame = tar.CFrame * cf
  276. wait(1/30)
  277. end
  278. end)()
  279. end
  280. function DoDamage(hum,dmg)
  281. if hum.Health == 0 then return end
  282. local a,b = ypcall(function()
  283. --hum:TakeDamage(dmg)
  284. hum.Health = hum.Health - dmg
  285. if not hum.Parent:FindFirstChild("Torso") then return end
  286. local m = Instance.new("Model",workspace)
  287. m.Name = -dmg
  288. local h = Instance.new("Humanoid",m)
  289. h.MaxHealth = 0
  290. local p = Instance.new("Part",m)
  291. p.Name = "Head"
  292. p.FormFactor = "Custom"
  293. p.Size = Vector3.new(.2,.2,.2)
  294. p.Transparency = 0.97
  295. p.CanCollide = false
  296. p.Anchored = true
  297. p:BreakJoints()
  298. game.Debris:AddItem(m,5)
  299. p.CFrame = CFrame.new(hum.Parent.Torso.Position) * CFrame.new(math.random(-2,2),2.5,math.random(-2,2))
  300. local rAm = math.random(3,6)/100
  301. coroutine.wrap(function()
  302. for i=1,300 do
  303. p.CFrame = p.CFrame * CFrame.new(0,rAm,0)
  304. wait()
  305. end
  306. p:Destroy()
  307. end)()
  308. end)
  309. if not a then print(b) end
  310. end
  311. local atdeb = false
  312. local basiccombo = 0
  313. local basiccombotimer = 0
  314. bg = Instance.new("BodyGyro",char.Torso)
  315. bg.maxTorque = Vector3.new(1,0,1)*9e10
  316. bg.P = 10000
  317. bg.D = 500
  318. bv = Instance.new("BodyVelocity",char.Torso)
  319. bv.maxForce = Vector3.new()
  320. bv.P = 50000
  321. kucon = mouse.KeyUp:connect(oc(function(k)
  322. if k == "0" and sprint then
  323. pcall(function() char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed / 1.5 end)
  324. sprint = false
  325. end
  326. end))
  327. kdcon = mouse.KeyDown:connect(oc(function(k)
  328. if k == "0" and not sprint then
  329. pcall(function() char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed * 1.5 end)
  330. sprint = true
  331. end
  332. if k == "f" then
  333. if atdeb then return end
  334. atdeb = true
  335. idling = false
  336. playSound(105374058,hamend,1,1)
  337. --- bg.cframe = char.Torso.CFrame * CFrame.Angles(math.rad(7),0,0)
  338. -- ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(-20),0,0),7,true)
  339. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(150),math.rad(0),math.rad(-90)),7)
  340. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(160),math.rad(0),math.rad(30)),13,true)
  341. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(-35),0,0),13,true)
  342. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(160),math.rad(0),math.rad(60)),13)
  343. playSound(92597296,hamend,1,1.07)
  344. local s = playSound(96626016,hamend)
  345. s.Volume = 0
  346. local hitcon
  347. hitcon = hamend.Touched:connect(function(hit)
  348. s.Volume = 1
  349. if not hit.Anchored then
  350. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*-20
  351. end
  352. local hum = hit.Parent:FindFirstChild("Humanoid")
  353. if hum and not hum:IsDescendantOf(char) then
  354. DoDamage(hum,80)
  355. hum.PlatformStand = true
  356. wait(.6)
  357. hum.PlatformStand = false
  358. end
  359. end)
  360. bg.maxTorque = Vector3.new(1,1,1)*9e10
  361. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(35),math.rad(0),math.rad(30)),4,true)
  362. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(35),0,0),4,true)
  363. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(35),math.rad(0),math.rad(-30)),4)
  364. if workspace:FindPartOnRay(Ray.new(hamend.Position,hamend.CFrame.lookVector*3),char) then
  365. s.Volume = 1
  366. end
  367. wait(.2)
  368. bg.maxTorque = Vector3.new(1,0,1)*9e10
  369. hitcon:disconnect()
  370. atdeb = false
  371. idling = true
  372. end
  373. if k == "q" then
  374. if atdeb then return end
  375. atdeb = true
  376. idling = false
  377. playSound(105374058,hamend,1,1)
  378. bg.cframe = char.Torso.CFrame * CFrame.Angles(math.rad(7),0,0)
  379. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(-30),math.rad(-25),math.rad(-15)),9,true)
  380. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(150),math.rad(0),math.rad(30)),7,true)
  381. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(-20),0,0),7,true)
  382. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(150),math.rad(0),math.rad(-30)),7)
  383. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(160),math.rad(0),math.rad(30)),13,true)
  384. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(-35),0,0),13,true)
  385. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(160),math.rad(0),math.rad(-30)),13)
  386. playSound(92597296,hamend,1,1.07)
  387. local s = playSound(96626016,hamend)
  388. s.Volume = 0
  389. local hitcon
  390. hitcon = hamend.Touched:connect(function(hit)
  391. s.Volume = 1
  392. if not hit.Anchored then
  393. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*-20
  394. end
  395. local hum = hit.Parent:FindFirstChild("Humanoid")
  396. if hum and not hum:IsDescendantOf(char) then
  397. DoDamage(hum,80)
  398. hum.PlatformStand = true
  399. wait(.6)
  400. hum.PlatformStand = false
  401. end
  402. end)
  403. bg.cframe = char.Torso.CFrame * CFrame.Angles(math.rad(7),0,0)
  404. wait(.05)
  405. bg.cframe = char.Torso.CFrame * CFrame.Angles(math.rad(-20),0,0)
  406. bg.maxTorque = Vector3.new(1,1,1)*9e10
  407. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(55),math.rad(5),math.rad(50)),7,true)
  408. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(5),0,0),4,true)
  409. ctween(rs,"C0",rs0*CFrame.new(-.9,0,-.9) * CFrame.Angles(math.rad(50),math.rad(5),math.rad(-50)),7)
  410. if workspace:FindPartOnRay(Ray.new(hamend.Position,hamend.CFrame.lookVector*3),char) then
  411. s.Volume = 1
  412. end
  413. wait(.2)
  414. bg.maxTorque = Vector3.new(1,0,1)*9e10
  415. hitcon:disconnect()
  416. atdeb = false
  417. idling = true
  418. end
  419. if k == "r" then
  420. if atdeb then return end
  421. atdeb = true
  422. idling = false
  423. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)),7,true)
  424. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-60))*CFrame.Angles(0,math.rad(180),0),9,true)
  425. bg.maxTorque = Vector3.new(1,1,1)*9e10
  426. bg.cframe = char.Torso.CFrame
  427. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(70),math.rad(0),math.rad(-30)),7,true)
  428. local s = playSound(92597296,hamend,1,1.07)
  429. s.Looped = true
  430. local sndmd = {}
  431. local hitcon
  432. hitcon = hamend.Touched:connect(function(hit)
  433. if not sndmd[hit] then sndmd[hit] = playSound(10730819,hamend) end
  434. if not hit.Anchored then
  435. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*60
  436. end
  437. local hum = hit.Parent:FindFirstChild("Humanoid")
  438. if hum and not hum:IsDescendantOf(char) then
  439. DoDamage(hum,math.random(55,60))
  440. hum.Sit = true
  441. wait(2)
  442. hum.Sit = false
  443. end
  444. end)
  445. for i=1,20 do
  446. bg.cframe = bg.cframe * CFrame.Angles(0,math.rad(-1440/20),0)
  447. wait(.1)
  448. end
  449. hitcon:disconnect()
  450. bg.maxTorque = Vector3.new(1,0,1)*9e10
  451. s:Stop()
  452. s:Destroy()
  453. atdeb = false
  454. idling = true
  455. end
  456. if k == "e" then
  457. if atdeb then return end
  458. basiccombo = (tick()-basiccombotimer > .5 or basiccombo == 2) and 1 or basiccombo + 1
  459. idling = false
  460. atdeb = true
  461. if basiccombo == 1 then
  462. ctween(ls,"C0",ls0 * CFrame.new(.2,.2,-.1) * CFrame.Angles(math.rad(120),math.rad(0),math.rad(5)) * CFrame.Angles(0,math.rad(60),0),7,true)
  463. ctween(rs,"C0",rs0*CFrame.new(0,0,-.3) * CFrame.Angles(math.rad(120),math.rad(70),math.rad(-30)),7)
  464. bg.maxTorque = Vector3.new(1,1,1)*9e10
  465. bg.cframe = char.Torso.CFrame * CFrame.Angles(0,math.rad(-40),0)
  466. playSound(92597296,hamend,1,1.2)
  467. local ac
  468. local hitcon
  469. hitcon = hamend.Touched:connect(function(hit)
  470. if not ac then ac = playSound(10730819,hamend,1,1) end
  471. if not hit.Anchored then
  472. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*50
  473. end
  474. local hum = hit.Parent:FindFirstChild("Humanoid")
  475. if hum and not hum:IsDescendantOf(char) then
  476. DoDamage(hum,45)
  477. end
  478. end)
  479. ctween(ls,"C0",ls0 * CFrame.new(1,.2,-1) * CFrame.Angles(math.rad(115),math.rad(0),math.rad(40)) * CFrame.Angles(0,math.rad(60),0),6,true)
  480. ctween(rs,"C0",rs0*CFrame.new(0,0,-.3) * CFrame.Angles(math.rad(120),math.rad(80),math.rad(-30))* CFrame.Angles(math.rad(-50),0,0),6,true)
  481. wait(.1)
  482. bg.cframe = char.Torso.CFrame * CFrame.Angles(0,math.rad(40),0)
  483. hitcon:disconnect()
  484. elseif basiccombo == 2 then
  485. ctween(ls,"C0",ls0*CFrame.new(1,0,-1) * CFrame.Angles(math.rad(5),math.rad(0),math.rad(70)),10,true)
  486. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(10),0,0),12,true)
  487. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),10,true)
  488. wait(.2)
  489. playSound(92597296,hamend,1,.7)
  490. wait(.1)
  491. bg.maxTorque = Vector3.new(1,1,1)*9e10
  492. bg.cframe = char.Torso.CFrame
  493. bv.maxForce = Vector3.new(1,0,1)*9e5
  494. bv.velocity = bg.cframe.lookVector * 70
  495. coroutine.wrap(function() for i=1,25 do bv.velocity = bv.velocity*.9 wait(1/30) end bv.maxForce = Vector3.new() end)()
  496. local thrustcon
  497. thrustcon = hamend.Touched:connect(function(hit)
  498. if not hit.Anchored then
  499. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*-40
  500. end
  501. local hum = hit.Parent:FindFirstChild("Humanoid")
  502. if hum and not hum:IsDescendantOf(char) then
  503. DoDamage(hum,30)
  504. --thrustcon:disconnect()
  505. hum.Sit = true
  506. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(30),0,0),5,true)
  507. if not ac then ac = playSound(92597296,hamend,1,1.15) end
  508. local tor = hum.Parent:FindFirstChild("Torso")
  509. if tor and not tor:FindFirstChild("torv") then
  510. --tor.Velocity = bg.cframe.lookVector*30 + Vector3.new(0,100,0)
  511. local torv = Instance.new("BodyVelocity",tor)
  512. torv.maxForce = Vector3.new(1,1,1)*9e9
  513. torv.P = 2000
  514. torv.velocity = bg.cframe.lookVector*20 + Vector3.new(0,120,0)
  515. torv.Name = "torv"
  516. local torav = Instance.new("BodyAngularVelocity",tor)
  517. torav.maxTorque = Vector3.new(1,1,1)*9e9
  518. torav.P = 5000
  519. torav.angularvelocity = Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*2
  520. coroutine.wrap(function()
  521. for i=1,torv.velocity.Y/196.22*30 do
  522. hum.Sit = true
  523. torv.velocity = torv.velocity - Vector3.new(0,196.22/30,0)
  524. wait(1/30)
  525. end
  526. torv:Destroy()
  527. torav:Destroy()
  528. tor.Velocity = Vector3.new()
  529. end)()
  530. end
  531. end
  532. end)
  533. ctween(ls,"C0",ls0*CFrame.new(1,0,-1) * CFrame.Angles(math.rad(80),math.rad(0),math.rad(50)),12,true)
  534. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(-70),0,0),12,true)
  535. ctween(rs,"C0",rs0*CFrame.new(-.6,0,-.7) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-10)),12,true)
  536. Delay(.3,function() thrustcon:disconnect() end)
  537. end
  538. wait(.1)
  539. bg.maxTorque = Vector3.new(1,0,1)*9e10
  540. basiccombotimer = tick()
  541. atdeb = false
  542. idling = true
  543. end -- 96626016, 92597296
  544. bg.cframe = CFrame.new(char.Torso.Position,char.Torso.Position+char.Torso.CFrame.lookVector*Vector3.new(1,0,1))
  545. end))
  546. char.Humanoid.MaxHealth = 500
  547. char.Humanoid.WalkSpeed = 21
  548. wait(.3)
  549. char.Humanoid.Health = 500
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement