Advertisement
Coryh

Untitled

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