Advertisement
JacksoMykalJunior

Hammer [FE]

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