knowyourmom12

Untitled

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