Advertisement
doryna2281337

Untitled

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