Advertisement
Guest User

Roblox lua hammer script FE

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