Advertisement
JacksoMykalJunior

Hammer Lua

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