Sazious

Untitled

Dec 11th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.47 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 = game:GetService("Players").LocalPlayer
  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.  
  160. local nk = char.Torso.Neck
  161. local nk0 = CFrame.new(0,1,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  162. local ra,la = char["Right Arm"], char["Left Arm"]
  163. ra:BreakJoints()
  164. la:BreakJoints()
  165. local rs = weld(char.Torso,ra,CFrame.new(1.25,.5,0), CFrame.new(-.25,.5,0),stuff)
  166. local ls = weld(char.Torso,la,CFrame.new(-1.25,.5,0), CFrame.new(.25,.5,0),stuff)
  167. ls.Part1.FrontSurface = "Hinge"
  168. rs.Part1.FrontSurface = "Hinge"
  169. local rs0 = rs.C0
  170. local ls0 = ls.C0
  171.  
  172. local color1 = BrickColor.new("Dark gray")
  173. local color2 = BrickColor.new("Navy blue")
  174.  
  175. local stuff = Instance.new("Model",char)
  176. pcall(function() char["Hammur"]:Destroy() end)
  177. stuff.Name = "Hammur"
  178. wait(.5)
  179. local handle = Instance.new("Part")
  180. handle.FormFactor = "Custom"
  181. handle.BrickColor = color1
  182. handle.Reflectance = .25
  183. handle.Size = Vector3.new(.5,5,.5)
  184. handle.TopSurface = "Smooth"
  185. handle.BottomSurface = "Smooth"
  186. handle.CanCollide = false
  187. handle.Parent = stuff
  188.  
  189. 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))
  190. local grip0 = grip.C0
  191. local hamend = handle:Clone()
  192. Instance.new("BlockMesh",hamend)
  193. hamend.Parent = stuff
  194. hamend.Size = Vector3.new(2,2,3.5)
  195. local hamwel = weld(handle,hamend,CFrame.new(0,3,0))
  196. local hamsd1 = hamend:Clone()
  197. hamsd1.Mesh.Scale = Vector3.new(1,1,1)
  198. hamsd1.Parent = stuff
  199. hamsd1.Size = Vector3.new(2.3,2.3,.3)
  200. weld(hamend,hamsd1,CFrame.new(0,0,1.75))
  201. local hamsd2 = hamsd1:Clone()
  202. hamsd2.Parent = stuff
  203. weld(hamend,hamsd2,CFrame.new(0,0,-1.75))
  204. local hamp = hamsd1:Clone()
  205. hamp.Parent = stuff
  206. hamp.Size = Vector3.new(.2,.2,3.5)
  207. weld(hamend,hamp,CFrame.new(.95,.95,0))
  208. hamp = hamp:Clone()
  209. hamp.Parent = stuff
  210. weld(hamend,hamp,CFrame.new(.95,-.95,0))
  211. hamp = hamp:Clone()
  212. hamp.Parent = stuff
  213. weld(hamend,hamp,CFrame.new(-.95,-.95,0))
  214. hamp = hamp:Clone()
  215. hamp.Parent = stuff
  216. weld(hamend,hamp,CFrame.new(-.95,.95,0))
  217. hamp = hamp:Clone()
  218. hamp.BrickColor = color2
  219. hamp.Reflectance = .2
  220. hamp.Size = Vector3.new(.2,.2,2.5)
  221. hamp.Parent = stuff
  222. weld(hamend,hamp,CFrame.new(0,.95,0))
  223. hamp = hamp:Clone()
  224. hamp.Parent = stuff
  225. weld(hamend,hamp,CFrame.new(0,-.95,0))
  226. hamp = hamp:Clone()
  227. hamp.Parent = stuff
  228. weld(hamend,hamp,CFrame.new(.95,0,0))
  229. hamp = hamp:Clone()
  230. hamp.Parent = stuff
  231. weld(hamend,hamp,CFrame.new(-.95,0,0))
  232. hamp = handle:Clone()
  233. hamp.BrickColor = color2
  234. hamp.Reflectance = .2
  235. hamp.Parent = stuff
  236. hamp.Size = Vector3.new(.4,.2,.4)
  237. Instance.new("CylinderMesh",hamp)
  238. weld(hamend,hamp,CFrame.new(0,-.955,1.2))
  239. hamp = hamp:Clone()
  240. hamp.Parent = stuff
  241. weld(hamend,hamp,CFrame.new(0,-.955,-1.2))
  242. hamp = hamp:Clone()
  243. hamp.Parent = stuff
  244. weld(hamend,hamp,CFrame.new(0,.955,1.2))
  245. hamp = hamp:Clone()
  246. hamp.Parent = stuff
  247. weld(hamend,hamp,CFrame.new(0,.955,-1.2))
  248. hamp = hamp:Clone()
  249. hamp.Parent = stuff
  250. weld(hamend,hamp,CFrame.new(.955,0,-1.2) * CFrame.Angles(0,0,math.rad(90)))
  251. hamp = hamp:Clone()
  252. hamp.Parent = stuff
  253. weld(hamend,hamp,CFrame.new(.955,0,1.2) * CFrame.Angles(0,0,math.rad(90)))
  254. hamp = hamp:Clone()
  255. hamp.Parent = stuff
  256. weld(hamend,hamp,CFrame.new(-.955,0,-1.2) * CFrame.Angles(0,0,math.rad(90)))
  257. hamp = hamp:Clone()
  258. hamp.Parent = stuff
  259. weld(hamend,hamp,CFrame.new(-.955,0,1.2) * CFrame.Angles(0,0,math.rad(90)))
  260. hamp = hamp:Clone()
  261. hamp.Parent = stuff
  262. weld(hamend,hamp,CFrame.new(.6,.955,0))
  263. hamp = hamp:Clone()
  264. hamp.Parent = stuff
  265. weld(hamend,hamp,CFrame.new(-.6,.955,0))
  266. hamp = hamp:Clone()
  267. hamp.Parent = stuff
  268. weld(hamend,hamp,CFrame.new(.6,-.955,0))
  269. hamp = hamp:Clone()
  270. hamp.Parent = stuff
  271. weld(hamend,hamp,CFrame.new(-.6,-.955,0))
  272. hamp = hamp:Clone()
  273. hamp.Parent = stuff
  274. weld(hamend,hamp,CFrame.new(-.955,.6,0) * CFrame.Angles(0,0,math.rad(90)))
  275. hamp = hamp:Clone()
  276. hamp.Parent = stuff
  277. weld(hamend,hamp,CFrame.new(-.955,-.6,0) * CFrame.Angles(0,0,math.rad(90)))
  278. hamp = hamp:Clone()
  279. hamp.Parent = stuff
  280. weld(hamend,hamp,CFrame.new(.955,.6,0) * CFrame.Angles(0,0,math.rad(90)))
  281. hamp = hamp:Clone()
  282. hamp.Parent = stuff
  283. weld(hamend,hamp,CFrame.new(.955,-.6,0) * CFrame.Angles(0,0,math.rad(90)))
  284. local luacyl = hamp:Clone()
  285. luacyl.BrickColor = BrickColor.Blue()
  286. luacyl.Parent = stuff
  287. luacyl.Mesh.Scale = Vector3.new(1,.2,1)
  288. luacyl.Size = Vector3.new(2,.2,2)
  289. weld(hamsd1,luacyl,CFrame.new(0,0,.14) * CFrame.Angles(math.rad(90),0,0))
  290. hamp = luacyl:Clone()
  291. hamp.BrickColor = BrickColor.White()
  292. hamp.Parent = stuff
  293. hamp.Size = Vector3.new(.7,.2,.7)
  294. weld(luacyl,hamp,CFrame.new(.35,.01,-.35))
  295. local luamoon = luacyl:Clone()
  296. luamoon.Parent = stuff
  297. luamoon.Size = Vector3.new(.7,.2,.7)
  298. local mnw = weld(luacyl,luamoon,CFrame.new(1.2,.02,-1.2))
  299. for r = 1,180,10 do
  300. local r2 = 2 * (math.pi/180*r)
  301. local l = hamsd1:Clone()
  302. l.Parent = stuff
  303. l.BrickColor = luacyl.BrickColor
  304. l.Size = Vector3.new(.3,.2,.2)
  305. l.Mesh.Scale = Vector3.new(1,.3,.3)
  306. weld(luacyl,l,CFrame.new(Vector3.new(math.sin(r2)*1.7,0,math.cos(r2)*1.7),Vector3.new()))
  307. end
  308. hamp = hamend:Clone()
  309. hamp.BrickColor = color2
  310. hamp.Reflectance = .2
  311. hamp.Size = Vector3.new(.2,.2,3.5)
  312. hamp.Mesh.Scale = Vector3.new(.25,.25,1)
  313. hamp.Parent = stuff
  314. weld(hamend,hamp,CFrame.new(-1.05,.95,0))
  315. hamp = hamp:Clone()
  316. hamp.Parent = stuff
  317. weld(hamend,hamp,CFrame.new(-.95,1.05,0))
  318. hamp = hamp:Clone()
  319. hamp.Parent = stuff
  320. weld(hamend,hamp,CFrame.new(1.05,.95,0))
  321. hamp = hamp:Clone()
  322. hamp.Parent = stuff
  323. weld(hamend,hamp,CFrame.new(.95,1.05,0))
  324. hamp = hamp:Clone()
  325. hamp.Parent = stuff
  326. weld(hamend,hamp,CFrame.new(1.05,-.95,0))
  327. hamp = hamp:Clone()
  328. hamp.Parent = stuff
  329. weld(hamend,hamp,CFrame.new(.95,-1.05,0))
  330. hamp = hamp:Clone()
  331. hamp.Parent = stuff
  332. weld(hamend,hamp,CFrame.new(-1.05,-.95,0))
  333. hamp = hamp:Clone()
  334. hamp.Parent = stuff
  335. weld(hamend,hamp,CFrame.new(-.95,-1.05,0))
  336. for x = -1,1 do
  337. for y = -1,1 do
  338. hamp = hamp:Clone()
  339. hamp.Mesh.Scale = Vector3.new(1,1,1)
  340. hamp.Size = Vector3.new(.5,.5,.2)
  341. hamp.Parent = stuff
  342. weld(hamsd2,hamp,CFrame.new(x*.7,y*.7,-.1))
  343. end
  344. end
  345.  
  346. rs.C0 = rs0 * CFrame.Angles(math.rad(70),math.rad(50),math.rad(-20))
  347. 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)
  348.  
  349. function endScript()
  350. pcall(function() runcon:disconnect() end)
  351. pcall(function() kdcon:disconnect() end)
  352. pcall(function() kucon:disconnect() end)
  353. pcall(game.Destroy,stuff)
  354. pcall(game.Destroy,bg)
  355. pcall(game.Destroy,bv)
  356. end
  357.  
  358. local spintime = 3
  359. local idling = true
  360.  
  361. runcon = game:GetService("RunService").Stepped:connect(oc(function()
  362. if not stuff:IsDescendantOf(workspace) then
  363. endScript()
  364. end
  365. local an = (tick()%spintime)*360/spintime
  366. mnw.C0 = CFrame.Angles(0,math.rad(an),0) * CFrame.new(0,.04,1.7)
  367. if idling then
  368. rs.C0 = clerp(rs.C0,rs0 * CFrame.Angles(math.rad(70+tickwave(3,5)),math.rad(50),math.rad(-20)),.4)
  369. 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)
  370. nk.C0 = clerp(nk.C0,nk0 * CFrame.Angles(tickwave(4,-.1),0,0),.4)
  371. grip.C0 = clerp(grip.C0,grip0,.4)
  372. end
  373. end))
  374.  
  375. function cfot(tar,cf,t)
  376. coroutine.wrap(function()
  377. for i=1,t do
  378. tar.CFrame = tar.CFrame * cf
  379. wait(1/30)
  380. end
  381. end)()
  382. end
  383.  
  384. function DoDamage(hum,dmg)
  385. if hum.Health == 0 then return end
  386. local a,b = ypcall(function()
  387. --hum:TakeDamage(dmg)
  388. hum.Health = hum.Health - dmg
  389. if not hum.Parent:FindFirstChild("Torso") then return end
  390. local m = Instance.new("Model",workspace)
  391. m.Name = -dmg
  392. local h = Instance.new("Humanoid",m)
  393. h.MaxHealth = 0
  394. local p = Instance.new("Part",m)
  395. p.Name = "Head"
  396. p.FormFactor = "Custom"
  397. p.Size = Vector3.new(.2,.2,.2)
  398. p.Transparency = 0.97
  399. p.CanCollide = false
  400. p.Anchored = true
  401. p:BreakJoints()
  402. game.Debris:AddItem(m,5)
  403. p.CFrame = CFrame.new(hum.Parent.Torso.Position) * CFrame.new(math.random(-2,2),2.5,math.random(-2,2))
  404. local rAm = math.random(3,6)/100
  405. coroutine.wrap(function()
  406. for i=1,300 do
  407. p.CFrame = p.CFrame * CFrame.new(0,rAm,0)
  408. wait()
  409. end
  410. p:Destroy()
  411. end)()
  412. end)
  413. if not a then print(b) end
  414. end
  415.  
  416. local atdeb = false
  417. local basiccombo = 0
  418. local basiccombotimer = 0
  419. bg = Instance.new("BodyGyro",char.Torso)
  420. bg.maxTorque = Vector3.new(1,0,1)*9e10
  421. bg.P = 10000
  422. bg.D = 500
  423. bv = Instance.new("BodyVelocity",char.Torso)
  424. bv.maxForce = Vector3.new()
  425. bv.P = 50000
  426.  
  427. kucon = mouse.KeyUp:connect(oc(function(k)
  428. if k == "0" and sprint then
  429. pcall(function() char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed / 1.5 end)
  430. sprint = false
  431. end
  432. end))
  433.  
  434. kdcon = mouse.KeyDown:connect(oc(function(k)
  435. if k == "0" and not sprint then
  436. pcall(function() char.Humanoid.WalkSpeed = char.Humanoid.WalkSpeed * 1.5 end)
  437. sprint = true
  438. end
  439. if k == "f" then
  440. if atdeb then return end
  441. atdeb = true
  442. idling = false
  443. playSound(105374058,hamend,1,1)
  444. --- bg.cframe = char.Torso.CFrame * CFrame.Angles(math.rad(7),0,0)
  445. -- ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(-20),0,0),7,true)
  446. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(150),math.rad(0),math.rad(-90)),7)
  447. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(160),math.rad(0),math.rad(30)),13,true)
  448. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(-35),0,0),13,true)
  449. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(160),math.rad(0),math.rad(60)),13)
  450. playSound(92597296,hamend,1,1.07)
  451. local s = playSound(96626016,hamend)
  452. s.Volume = 0
  453. local hitcon
  454. hitcon = hamend.Touched:connect(function(hit)
  455. s.Volume = 1
  456. if not hit.Anchored then
  457. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*-20
  458. end
  459. local hum = hit.Parent:FindFirstChild("Humanoid")
  460. if hum and not hum:IsDescendantOf(char) then
  461. DoDamage(hum,30)
  462. hum.PlatformStand = true
  463. wait(.6)
  464. hum.PlatformStand = false
  465. end
  466. end)
  467. bg.maxTorque = Vector3.new(1,1,1)*9e10
  468. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(35),math.rad(0),math.rad(30)),4,true)
  469. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(35),0,0),4,true)
  470. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(35),math.rad(0),math.rad(-30)),4)
  471. if workspace:FindPartOnRay(Ray.new(hamend.Position,hamend.CFrame.lookVector*3),char) then
  472. s.Volume = 1
  473. end
  474. wait(.2)
  475. bg.maxTorque = Vector3.new(1,0,1)*9e10
  476. hitcon:disconnect()
  477. atdeb = false
  478. idling = true
  479. end
  480. if k == "q" then
  481. if atdeb then return end
  482. atdeb = true
  483. idling = false
  484. playSound(105374058,hamend,1,1)
  485. bg.cframe = char.Torso.CFrame * CFrame.Angles(math.rad(7),0,0)
  486. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(-30),math.rad(-25),math.rad(-15)),9,true)
  487. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(150),math.rad(0),math.rad(30)),7,true)
  488. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(-20),0,0),7,true)
  489. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(150),math.rad(0),math.rad(-30)),7)
  490. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(160),math.rad(0),math.rad(30)),13,true)
  491. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(-35),0,0),13,true)
  492. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(160),math.rad(0),math.rad(-30)),13)
  493. playSound(92597296,hamend,1,1.07)
  494. local s = playSound(96626016,hamend)
  495. s.Volume = 0
  496. local hitcon
  497. hitcon = hamend.Touched:connect(function(hit)
  498. s.Volume = 1
  499. if not hit.Anchored then
  500. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*-20
  501. end
  502. local hum = hit.Parent:FindFirstChild("Humanoid")
  503. if hum and not hum:IsDescendantOf(char) then
  504. DoDamage(hum,30)
  505. hum.PlatformStand = true
  506. wait(.6)
  507. hum.PlatformStand = false
  508. end
  509. end)
  510. bg.cframe = char.Torso.CFrame * CFrame.Angles(math.rad(7),0,0)
  511. wait(.05)
  512. bg.cframe = char.Torso.CFrame * CFrame.Angles(math.rad(-20),0,0)
  513. bg.maxTorque = Vector3.new(1,1,1)*9e10
  514. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(55),math.rad(5),math.rad(50)),7,true)
  515. ctween(nk,"C0",nk0 * CFrame.Angles(math.rad(5),0,0),4,true)
  516. ctween(rs,"C0",rs0*CFrame.new(-.9,0,-.9) * CFrame.Angles(math.rad(50),math.rad(5),math.rad(-50)),7)
  517. if workspace:FindPartOnRay(Ray.new(hamend.Position,hamend.CFrame.lookVector*3),char) then
  518. s.Volume = 1
  519. end
  520. wait(.2)
  521. bg.maxTorque = Vector3.new(1,0,1)*9e10
  522. hitcon:disconnect()
  523. atdeb = false
  524. idling = true
  525. end
  526. if k == "r" then
  527. if atdeb then return end
  528. atdeb = true
  529. idling = false
  530. ctween(ls,"C0",ls0*CFrame.new(.7,0,-.7) * CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)),7,true)
  531. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-60))*CFrame.Angles(0,math.rad(180),0),9,true)
  532. bg.maxTorque = Vector3.new(1,1,1)*9e10
  533. bg.cframe = char.Torso.CFrame
  534. ctween(rs,"C0",rs0*CFrame.new(-.7,0,-.7) * CFrame.Angles(math.rad(70),math.rad(0),math.rad(-30)),7,true)
  535. local s = playSound(92597296,hamend,1,1.07)
  536. s.Looped = true
  537. local sndmd = {}
  538. local hitcon
  539. hitcon = hamend.Touched:connect(function(hit)
  540. if not sndmd[hit] then sndmd[hit] = playSound(10730819,hamend) end
  541.  
  542. if not hit.Anchored then
  543. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*60
  544. end
  545. local hum = hit.Parent:FindFirstChild("Humanoid")
  546. if hum and not hum:IsDescendantOf(char) then
  547. DoDamage(hum,math.random(4,6))
  548. hum.Sit = true
  549. wait(2)
  550. hum.Sit = false
  551. end
  552. end)
  553. for i=1,20 do
  554. bg.cframe = bg.cframe * CFrame.Angles(0,math.rad(-1440/20),0)
  555. wait(.1)
  556. end
  557. hitcon:disconnect()
  558. bg.maxTorque = Vector3.new(1,0,1)*9e10
  559. s:Stop()
  560. s:Destroy()
  561. atdeb = false
  562. idling = true
  563. end
  564. if k == "e" then
  565. if atdeb then return end
  566. basiccombo = (tick()-basiccombotimer > .5 or basiccombo == 2) and 1 or basiccombo + 1
  567. idling = false
  568. atdeb = true
  569. if basiccombo == 1 then
  570. 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)
  571. ctween(rs,"C0",rs0*CFrame.new(0,0,-.3) * CFrame.Angles(math.rad(120),math.rad(70),math.rad(-30)),7)
  572. bg.maxTorque = Vector3.new(1,1,1)*9e10
  573. bg.cframe = char.Torso.CFrame * CFrame.Angles(0,math.rad(-40),0)
  574. playSound(92597296,hamend,1,1.2)
  575. local ac
  576. local hitcon
  577. hitcon = hamend.Touched:connect(function(hit)
  578. if not ac then ac = playSound(10730819,hamend,1,1) end
  579. if not hit.Anchored then
  580. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*50
  581. end
  582. local hum = hit.Parent:FindFirstChild("Humanoid")
  583. if hum and not hum:IsDescendantOf(char) then
  584. DoDamage(hum,10)
  585. end
  586. end)
  587. 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)
  588. 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)
  589. wait(.1)
  590. bg.cframe = char.Torso.CFrame * CFrame.Angles(0,math.rad(40),0)
  591. hitcon:disconnect()
  592. elseif basiccombo == 2 then
  593. ctween(ls,"C0",ls0*CFrame.new(1,0,-1) * CFrame.Angles(math.rad(5),math.rad(0),math.rad(70)),10,true)
  594. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(10),0,0),12,true)
  595. ctween(rs,"C0",rs0*CFrame.new(0,0,0) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),10,true)
  596. wait(.2)
  597. playSound(92597296,hamend,1,.7)
  598. wait(.1)
  599. bg.maxTorque = Vector3.new(1,1,1)*9e10
  600. bg.cframe = char.Torso.CFrame
  601. bv.maxForce = Vector3.new(1,0,1)*9e5
  602. bv.velocity = bg.cframe.lookVector * 70
  603. coroutine.wrap(function() for i=1,25 do bv.velocity = bv.velocity*.9 wait(1/30) end bv.maxForce = Vector3.new() end)()
  604. local thrustcon
  605. thrustcon = hamend.Touched:connect(function(hit)
  606. if not hit.Anchored then
  607. hit.Velocity = hit.Velocity + hamend.CFrame.lookVector*-40
  608. end
  609. local hum = hit.Parent:FindFirstChild("Humanoid")
  610. if hum and not hum:IsDescendantOf(char) then
  611. DoDamage(hum,5)
  612. --thrustcon:disconnect()
  613. hum.Sit = true
  614. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(30),0,0),5,true)
  615. if not ac then ac = playSound(92597296,hamend,1,1.15) end
  616. local tor = hum.Parent:FindFirstChild("Torso")
  617. if tor and not tor:FindFirstChild("torv") then
  618. --tor.Velocity = bg.cframe.lookVector*30 + Vector3.new(0,100,0)
  619. local torv = Instance.new("BodyVelocity",tor)
  620. torv.maxForce = Vector3.new(1,1,1)*9e9
  621. torv.P = 2000
  622. torv.velocity = bg.cframe.lookVector*20 + Vector3.new(0,120,0)
  623. torv.Name = "torv"
  624. local torav = Instance.new("BodyAngularVelocity",tor)
  625. torav.maxTorque = Vector3.new(1,1,1)*9e9
  626. torav.P = 5000
  627. torav.angularvelocity = Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*2
  628. coroutine.wrap(function()
  629. for i=1,torv.velocity.Y/196.22*30 do
  630. hum.Sit = true
  631. torv.velocity = torv.velocity - Vector3.new(0,196.22/30,0)
  632. wait(1/30)
  633. end
  634. torv:Destroy()
  635. torav:Destroy()
  636. tor.Velocity = Vector3.new()
  637. end)()
  638. end
  639. end
  640. end)
  641. ctween(ls,"C0",ls0*CFrame.new(1,0,-1) * CFrame.Angles(math.rad(80),math.rad(0),math.rad(50)),12,true)
  642. ctween(grip,"C0",grip0*CFrame.Angles(math.rad(-70),0,0),12,true)
  643. ctween(rs,"C0",rs0*CFrame.new(-.6,0,-.7) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-10)),12,true)
  644. Delay(.3,function() thrustcon:disconnect() end)
  645.  
  646. end
  647. wait(.1)
  648. bg.maxTorque = Vector3.new(1,0,1)*9e10
  649.  
  650. basiccombotimer = tick()
  651. atdeb = false
  652. idling = true
  653.  
  654. end -- 96626016, 92597296
  655. bg.cframe = CFrame.new(char.Torso.Position,char.Torso.Position+char.Torso.CFrame.lookVector*Vector3.new(1,0,1))
  656. end))
  657.  
  658. char.Humanoid.MaxHealth = 220
  659. char.Humanoid.WalkSpeed = 20
  660. wait(.3)
  661. char.Humanoid.Health = 9999999999999999999999999999999
Advertisement
Add Comment
Please, Sign In to add comment