rcubed1003

big hammer fe ver

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