Advertisement
bmrx13

OOF HAMMER (the cowards will fear you.)

Oct 21st, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.80 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.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,Functions={},Connect=function(self,f)table.insert(self.Functions,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(),Button2Up=fakeEvent(),Button2Down=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 then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  52. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then
  98. return typeof(s[k])=="function"
  99. and function(_,...)return s[k](s,...)end or s[k]
  100. end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v 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 rawget(self,s) or _rg:GetService(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. RunService = FakeService({
  123. _btrs = {},
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132. }
  133. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  134. g.service = g.GetService
  135. FakeService(g,game)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139.  
  140.  
  141.  
  142. --Converted with ttyyuu12345's model to script plugin v4
  143. function sandbox(var,func)
  144. local env = getfenv(func)
  145. local newenv = setmetatable({},{
  146. __index = function(self,k)
  147. if k=="script" then
  148. return var
  149. else
  150. return env[k]
  151. end
  152. end,
  153. })
  154. setfenv(func,newenv)
  155. return func
  156. end
  157. cors = {}
  158. mas = Instance.new("Model",game:GetService("Lighting"))
  159. Tool0 = Instance.new("Tool")
  160. Animation1 = Instance.new("Animation")
  161. Animation2 = Instance.new("Animation")
  162. Animation3 = Instance.new("Animation")
  163. Part4 = Instance.new("Part")
  164. SpecialMesh5 = Instance.new("SpecialMesh")
  165. Sound6 = Instance.new("Sound")
  166. Sound7 = Instance.new("Sound")
  167. LocalScript8 = Instance.new("LocalScript")
  168. ParticleEmitter9 = Instance.new("ParticleEmitter")
  169. ParticleEmitter10 = Instance.new("ParticleEmitter")
  170. ParticleEmitter11 = Instance.new("ParticleEmitter")
  171. ParticleEmitter12 = Instance.new("ParticleEmitter")
  172. Attachment13 = Instance.new("Attachment")
  173. ParticleEmitter14 = Instance.new("ParticleEmitter")
  174. Attachment15 = Instance.new("Attachment")
  175. ParticleEmitter16 = Instance.new("ParticleEmitter")
  176. ParticleEmitter17 = Instance.new("ParticleEmitter")
  177. LocalScript18 = Instance.new("LocalScript")
  178. Sound19 = Instance.new("Sound")
  179. Tool0.Name = "Oof hammer"
  180. Tool0.Parent = mas
  181. Tool0.GripForward = Vector3.new(-1, -0, -0)
  182. Tool0.GripPos = Vector3.new(0, 0, -1.29999995)
  183. Tool0.GripRight = Vector3.new(0, 1, 0)
  184. Tool0.GripUp = Vector3.new(0, 0, 1)
  185. Tool0.ToolTip = "this is a god killing utensil"
  186. Animation1.Name = "QuickSlash"
  187. Animation1.Parent = Tool0
  188. Animation1.AnimationId = "http://www.roblox.com/Asset?ID=49815113"
  189. Animation2.Name = "ShieldBash"
  190. Animation2.Parent = Tool0
  191. Animation2.AnimationId = "http://www.roblox.com/Asset?ID=49907410"
  192. Animation3.Name = "ShieldWalk"
  193. Animation3.Parent = Tool0
  194. Animation3.AnimationId = "http://www.roblox.com/Asset?ID=49763871"
  195. Part4.Name = "Handle"
  196. Part4.Parent = Tool0
  197. Part4.Material = Enum.Material.SmoothPlastic
  198. Part4.BrickColor = BrickColor.new("Institutional white")
  199. Part4.Rotation = Vector3.new(-90, 0, -180)
  200. Part4.FormFactor = Enum.FormFactor.Plate
  201. Part4.Size = Vector3.new(1.07499957, 1.09999979, 5.49999905)
  202. Part4.CFrame = CFrame.new(-52.5500069, 2.75001097, -38.8999939, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  203. Part4.BottomSurface = Enum.SurfaceType.Smooth
  204. Part4.TopSurface = Enum.SurfaceType.Smooth
  205. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  206. Part4.Position = Vector3.new(-52.5500069, 2.75001097, -38.8999939)
  207. Part4.Orientation = Vector3.new(-90, -180, 0)
  208. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  209. SpecialMesh5.Parent = Part4
  210. SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=12592754"
  211. SpecialMesh5.Scale = Vector3.new(1.71874976, 1.71874976, 1.71874976)
  212. SpecialMesh5.TextureId = "http://www.roblox.com/asset/?id=418208180"
  213. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  214. SpecialMesh5.Scale = Vector3.new(1.71874976, 1.71874976, 1.71874976)
  215. Sound6.Name = "Hit"
  216. Sound6.Parent = Part4
  217. Sound6.SoundId = "rbxassetid://291487516"
  218. Sound6.Volume = 6
  219. Sound7.Name = "Swing"
  220. Sound7.Parent = Part4
  221. Sound7.SoundId = "rbxassetid://1268836293"
  222. Sound7.Volume = 1
  223. LocalScript8.Name = "OOFHAMMERscript"
  224. LocalScript8.Parent = Part4
  225. table.insert(cors,sandbox(LocalScript8,function()
  226. ------------------------
  227. --[[UTIL Functions]]--
  228. ------------------------
  229. --Global functions used by all classes are wrapped in UTIL
  230. --deal with it.
  231. local UTIL = {}
  232.  
  233. function UTIL.Class(tableIn,template)
  234. tableIn = tableIn or {}
  235. local mt = {
  236. __metatable = UTIL.DeepCopy(template);
  237. __index = UTIL.DeepCopy(template);
  238. }
  239. return setmetatable(tableIn, mt)
  240. end
  241. function UTIL.MakeClass(...)
  242. local arg = {...}
  243. assert(#arg>0, 'ERROR: class needs 1 argument or more')
  244. local members = arg[1]
  245. for i=2,#arg,1 do
  246. if type(arg[i])=='table' then
  247. for key,val in pairs(arg[i]) do
  248. if not members[key] then
  249. members[key] = val
  250. end
  251. end
  252. end
  253. end
  254. local function New(init)
  255. return UTIL.Class(init or {},members)
  256. end
  257. local function Copy(obj, ...)
  258. local newobj = obj:New(unpack(arg))
  259. for n,v in pairs(obj) do newobj[n] = v end
  260. return newobj
  261. end
  262. members.New = New
  263. members.Copy = Copy
  264. return mt
  265. end
  266.  
  267. function UTIL.DeepCopy(orig)
  268. local orig_type = type(orig)
  269. local copy
  270. if orig_type == 'table' then
  271. copy = {}
  272. for orig_key, orig_value in next, orig, nil do
  273. copy[UTIL.DeepCopy(orig_key)] = UTIL.DeepCopy(orig_value)
  274. end
  275. setmetatable(copy, UTIL.DeepCopy(getmetatable(orig)))
  276. else -- number, string, boolean, etc
  277. copy = orig
  278. end
  279. return copy
  280. end
  281.  
  282. function UTIL.Instantiate(guiType)
  283. return function(data)
  284. local obj = Instance.new(guiType)
  285. for k, v in pairs(data) do
  286. if type(k) == 'number' then
  287. v.Parent = obj
  288. else
  289. obj[k] = v
  290. end
  291. end
  292. return obj
  293. end
  294. end
  295.  
  296. function UTIL.RetroRegister(func,...)
  297. func()
  298. for _,i in ipairs({...}) do
  299. i:connect(func)
  300. end
  301. end
  302.  
  303. -- Waits for a new character to be added if the current one is invalid
  304. -- (Ensures that you don't have the old dead character after a respawn)
  305. function UTIL.WaitForValidCharacter(player)
  306. local character = player.Character
  307. if not character or not character.Parent or not character:FindFirstChild('Humanoid') or character.Humanoid.Health <= 0 then
  308. player.CharacterAdded:wait()
  309. wait(0) --NOTE: Necessary for server scripts executing on the same event
  310. character = player.Character
  311. end
  312. return character
  313. end
  314.  
  315.  
  316. -- Returns a character ancestor and its Humanoid, or nil
  317. function UTIL.FindCharacterAncestor(subject)
  318. if subject and subject ~= Workspace then
  319. local humanoid = subject:FindFirstChild('Humanoid')
  320. if humanoid then
  321. return subject, humanoid
  322. else
  323. return UTIL.FindCharacterAncestor(subject.Parent)
  324. end
  325. end
  326. return nil
  327. end
  328.  
  329. UTIL.AssetURL = 'http://www.roblox.com/asset/?id='
  330.  
  331.  
  332. UTIL.TouchEnabled = game:GetService("UserInputService").TouchEnabled
  333. do
  334. local suceeded,_ =pcall(function() game.Workspace.CurrentCamera:GetPanSpeed() end)
  335. UTIL.CanCheckPanSpeed = suceeded
  336. end
  337.  
  338.  
  339. local DebrisService = Game:GetService('Debris')
  340. local DebugPrintOffset = 0
  341. function UTIL.Dprint(...)
  342. local line = ''
  343. for _, segment in pairs({...}) do
  344. line = line .. (line and ' ' or '') .. tostring(segment)
  345. end
  346. local gui = Instance.new('ScreenGui')
  347. local label = Instance.new('TextLabel')
  348. label.Text = line
  349. label.Size = UDim2.new(0.25, 0, 0.05, 0)
  350. label.BackgroundTransparency = 0.5
  351. label.Position = UDim2.new(0, 0, 0, DebugPrintOffset)
  352. label.TextWrapped = true
  353. label.Parent = gui
  354. DebrisService:AddItem(gui, 30)
  355. gui.Parent = script.Parent
  356. DebugPrintOffset = (DebugPrintOffset <= 600) and DebugPrintOffset + 30 or 0
  357. end
  358. --
  359. --All Welding Related Utility functions should be put here
  360. --
  361. WeldUtil = {}
  362.  
  363.  
  364. do
  365.  
  366.  
  367. function WeldUtil.WeldBetween(a, b)
  368. local weld = Instance.new("Weld")
  369. weld.Part0 = a
  370. weld.Part1 = b
  371. weld.C0 = CFrame.new()
  372. weld.C1 = b.CFrame:inverse() * a.CFrame
  373.  
  374. weld.Parent = a
  375. return weld
  376. end
  377.  
  378. function WeldUtil:PermaWeld(weld)
  379. local OriginalParent = weld.Parent
  380. weld.Changed:connect(function()
  381. Delay(0,function() weld.Parent = OriginalParent end)
  382. end)
  383. end
  384.  
  385. end
  386.  
  387. local InternalEvent =
  388. {
  389. Listeners = nil,
  390. }
  391. do
  392. UTIL.MakeClass(InternalEvent)
  393. function InternalEvent:Connect(func)
  394. if not self.Listeners then self.Listeners = {} end
  395. table.insert(self.Listeners,func)
  396. end
  397. function InternalEvent:Fire(...)
  398. if not self.Listeners then return end
  399. local args = {...}
  400. for _,i in ipairs(self.Listeners) do
  401. Spawn(function() i(unpack(args)) end)
  402. end
  403. end
  404. end
  405.  
  406. --[[Sword Part Class]]--
  407.  
  408. local SwordPart =
  409. {
  410. Damage = 1,
  411. AttackTime = math.random(.1),
  412. CoolDown = 0,
  413.  
  414. LastSwing = 0,
  415. LastHit = 0,
  416.  
  417. Part= nil,
  418. Owner = nil,--player object that owns this sword
  419.  
  420. OnHit = nil,
  421. OnHitHumanoid = nil,
  422. OnAttackReady = nil,
  423. OnAttack = nil,
  424.  
  425.  
  426. SwingSound = nil,
  427. HitSound = nil,
  428. SwingAnimation = nil, --animation track!
  429.  
  430. ActiveConnections = {},
  431.  
  432. }
  433. do
  434. UTIL.MakeClass(SwordPart)
  435. function SwordPart.New(npart,nowner)
  436. local init= UTIL.DeepCopy(SwordPart)
  437. init.Part= npart
  438. init.Owner = nowner
  439. table.insert(init.ActiveConnections,init.Part.Touched:connect(function(hit) init:SwordTouch(hit) end))
  440.  
  441. init.OnHit = InternalEvent.New()
  442. init.OnHitHumanoid = InternalEvent.New()
  443. init.OnAttackReady = InternalEvent.New()
  444. init.OnAttack = InternalEvent.New()
  445.  
  446. return init
  447. end
  448.  
  449. function SwordPart:SwordTouch(hit)
  450. if tick()-self.LastSwing >self.AttackTime or tick()-self.LastHit<self.AttackTime then return end
  451. self.OnHit:Fire(hit)
  452. local character,humanoid = UTIL.FindCharacterAncestor(hit)
  453. if character and character ~= self.Owner.Character then
  454. humanoid:TakeDamage(self.Damage)
  455. self.OnHitHumanoid:Fire(humanoid,hit)
  456. self.LastHit = tick()
  457. if self.HitSound then
  458. self.HitSound:Play()
  459. end
  460. end
  461.  
  462. end
  463.  
  464. function SwordPart:DoSwing()
  465. if tick()-self.LastSwing<self.AttackTime+self.CoolDown then
  466. return
  467. end
  468.  
  469. if self.SwingAnimation then
  470. self.SwingAnimation:Play()
  471. end
  472. if self.SwingSound then
  473. self.SwingSound:Play()
  474. end
  475. self.LastSwing = tick()
  476. self.OnAttack:Fire()
  477. end
  478.  
  479. function SwordPart:Destroy()
  480. for _,i in pairs(self.ActiveConnections) do
  481. i:disconnect()
  482. end
  483. end
  484. end
  485. do
  486. local Handle = script.Parent
  487. local Tool = Handle.Parent
  488.  
  489. local Player = game.Players.LocalPlayer
  490. local Character = UTIL.WaitForValidCharacter(Player)
  491. local SwingAni = UTIL.Instantiate"Animation"
  492. {AnimationId = "http://www.roblox.com/Asset?ID=33169596"}
  493.  
  494. local HitSound = Handle:WaitForChild('Hit')
  495. local SwingSound = Handle:WaitForChild('Swing')
  496.  
  497. local SwingAniTrack
  498.  
  499. local Sword
  500.  
  501.  
  502. Tool.Equipped:connect(function(mouse)
  503. Sword = SwordPart.New(Handle,Player)
  504. Sword.Damage = math.random(9999999999999999999999999999999999999)
  505. Sword.HitSound = HitSound
  506. Sword.SwingSound = SwingSound
  507. Character = UTIL.WaitForValidCharacter(Player)
  508. local Humanoid = Character:FindFirstChild('Humanoid')
  509.  
  510. SwingAniTrack = Humanoid:LoadAnimation(SwingAni)
  511. Sword.SwingAnimation = SwingAniTrack
  512.  
  513. Sword.OnHitHumanoid:Connect(function(humanoid,hit)
  514. local myTorso = Character:FindFirstChild('Torso')
  515. local torso = humanoid.Parent:FindFirstChild('Torso')
  516. if not torso or not myTorso then return end
  517.  
  518. if hit.Name=='nil' then
  519. hit:BreakJoints()
  520. WeldUtil.WeldBetween(hit, Handle)
  521. Delay(1,function() hit:BreakJoints() end )
  522. end
  523. end)
  524.  
  525. mouse.Button1Down:connect(function()
  526. Sword:DoSwing()
  527. end)
  528. end)
  529. Tool.Unequipped:connect(function()
  530. Sword:Destroy()
  531. end)
  532.  
  533. end
  534.  
  535. end))
  536. ParticleEmitter9.Parent = Part4
  537. ParticleEmitter9.Transparency = NumberSequence.new(1,0,1)
  538. ParticleEmitter9.Rotation = NumberRange.new(-999, 999)
  539. ParticleEmitter9.Size = NumberSequence.new(0,0.30000001192093,0)
  540. ParticleEmitter9.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0.137255, 0.137255, 0))
  541. ParticleEmitter9.LightEmission = 1
  542. ParticleEmitter9.Acceleration = Vector3.new(0, -0.5, 0)
  543. ParticleEmitter9.Lifetime = NumberRange.new(0, 5)
  544. ParticleEmitter9.Rate = inf
  545. ParticleEmitter9.RotSpeed = NumberRange.new(-180, 180)
  546. ParticleEmitter9.Speed = NumberRange.new(0, 0.5)
  547. ParticleEmitter9.VelocitySpread = 999
  548. ParticleEmitter9.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0.137255, 0.137255, 0))
  549. ParticleEmitter10.Parent = Part4
  550. ParticleEmitter10.Transparency = NumberSequence.new(1,0,1)
  551. ParticleEmitter10.Rotation = NumberRange.new(-999, 999)
  552. ParticleEmitter10.Size = NumberSequence.new(0,0.10000000149012,0)
  553. ParticleEmitter10.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0.333333, 0.498039))
  554. ParticleEmitter10.LightEmission = 1
  555. ParticleEmitter10.Acceleration = Vector3.new(0, -0.5, 0)
  556. ParticleEmitter10.Lifetime = NumberRange.new(0, 5)
  557. ParticleEmitter10.Rate = inf
  558. ParticleEmitter10.RotSpeed = NumberRange.new(-180, 180)
  559. ParticleEmitter10.Speed = NumberRange.new(0, 0.5)
  560. ParticleEmitter10.VelocitySpread = 999
  561. ParticleEmitter10.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0.333333, 0.498039))
  562. ParticleEmitter11.Name = "shine"
  563. ParticleEmitter11.Parent = Part4
  564. ParticleEmitter11.Transparency = NumberSequence.new(1,0.94375002384186,0,0.94375002384186,1,0.98124998807907,1)
  565. ParticleEmitter11.Rotation = NumberRange.new(-999, 999)
  566. ParticleEmitter11.Size = NumberSequence.new(0,0.18750011920929,0.40000000596046,0.9375,0)
  567. ParticleEmitter11.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0.498039),Color3.new(0, 0, 0))
  568. ParticleEmitter11.LightEmission = 1
  569. ParticleEmitter11.Texture = "rbxassetid://2406236224"
  570. ParticleEmitter11.ZOffset = -1
  571. ParticleEmitter11.Acceleration = Vector3.new(0, 0.00499999989, 0)
  572. ParticleEmitter11.Lifetime = NumberRange.new(0, 5)
  573. ParticleEmitter11.Rate = inf
  574. ParticleEmitter11.RotSpeed = NumberRange.new(-180, 180)
  575. ParticleEmitter11.Speed = NumberRange.new(0, 0.0049999998882413)
  576. ParticleEmitter11.VelocitySpread = 999
  577. ParticleEmitter11.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0.498039),Color3.new(0, 0, 0))
  578. ParticleEmitter12.Name = "shine"
  579. ParticleEmitter12.Parent = Part4
  580. ParticleEmitter12.Transparency = NumberSequence.new(1,0.94375002384186,0,0.94375002384186,1,0.98124998807907,1)
  581. ParticleEmitter12.Rotation = NumberRange.new(-999, 999)
  582. ParticleEmitter12.Size = NumberSequence.new(0,0.10000000149012,0.20000000298023,0.40000000596046,0)
  583. ParticleEmitter12.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(1, 1, 0),Color3.new(0, 0, 0))
  584. ParticleEmitter12.LightEmission = 1
  585. ParticleEmitter12.Texture = "rbxassetid://2406236224"
  586. ParticleEmitter12.ZOffset = 0.15000000596046
  587. ParticleEmitter12.Acceleration = Vector3.new(0, 0.00499999989, 0)
  588. ParticleEmitter12.Lifetime = NumberRange.new(0, 5)
  589. ParticleEmitter12.Rate = inf
  590. ParticleEmitter12.RotSpeed = NumberRange.new(-180, 180)
  591. ParticleEmitter12.Speed = NumberRange.new(0, 0.0049999998882413)
  592. ParticleEmitter12.VelocitySpread = 999
  593. ParticleEmitter12.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(1, 1, 0),Color3.new(0, 0, 0))
  594. Attachment13.Parent = Part4
  595. Attachment13.CFrame = CFrame.new(-1.40588212, 0.150000006, 2.29999995, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  596. Attachment13.Position = Vector3.new(-1.40588212, 0.150000006, 2.29999995)
  597. ParticleEmitter14.Parent = Attachment13
  598. ParticleEmitter14.Transparency = NumberSequence.new(0,1)
  599. ParticleEmitter14.Size = NumberSequence.new(0,0.5,0)
  600. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
  601. ParticleEmitter14.LightEmission = 0.34999999403954
  602. ParticleEmitter14.Texture = "rbxassetid://1127194263"
  603. ParticleEmitter14.ZOffset = 0.5
  604. ParticleEmitter14.Lifetime = NumberRange.new(0, 0.25)
  605. ParticleEmitter14.Rate = 9.9999996169032e+35
  606. ParticleEmitter14.RotSpeed = NumberRange.new(-9, 9)
  607. ParticleEmitter14.Speed = NumberRange.new(0, 0)
  608. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
  609. Attachment15.Parent = Part4
  610. Attachment15.CFrame = CFrame.new(-1.40588212, -0.25, 2.29999995, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  611. Attachment15.Position = Vector3.new(-1.40588212, -0.25, 2.29999995)
  612. ParticleEmitter16.Parent = Attachment15
  613. ParticleEmitter16.Transparency = NumberSequence.new(0,1)
  614. ParticleEmitter16.Size = NumberSequence.new(0,0.5,0)
  615. ParticleEmitter16.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
  616. ParticleEmitter16.LightEmission = 0.34999999403954
  617. ParticleEmitter16.Texture = "rbxassetid://1127194263"
  618. ParticleEmitter16.ZOffset = 0.5
  619. ParticleEmitter16.Lifetime = NumberRange.new(0, 0.25)
  620. ParticleEmitter16.Rate = 9.9999996169032e+35
  621. ParticleEmitter16.RotSpeed = NumberRange.new(-9, 9)
  622. ParticleEmitter16.Speed = NumberRange.new(0, 0)
  623. ParticleEmitter16.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
  624. ParticleEmitter17.Name = "dp"
  625. ParticleEmitter17.Parent = Part4
  626. ParticleEmitter17.Transparency = NumberSequence.new(1,0,0,1)
  627. ParticleEmitter17.Rotation = NumberRange.new(-180, 180)
  628. ParticleEmitter17.Size = NumberSequence.new(10,10,0,2.75,9)
  629. ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 0.972549, 0.113725),Color3.new(1, 0.972549, 0.113725))
  630. ParticleEmitter17.LightEmission = 0.5
  631. ParticleEmitter17.Texture = "rbxassetid://2446898316"
  632. ParticleEmitter17.Acceleration = Vector3.new(0, -50, 0)
  633. ParticleEmitter17.Lifetime = NumberRange.new(0, 5)
  634. ParticleEmitter17.Rate = 50
  635. ParticleEmitter17.RotSpeed = NumberRange.new(-150, 150)
  636. ParticleEmitter17.Speed = NumberRange.new(0, 85)
  637. ParticleEmitter17.VelocitySpread = 65
  638. ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 0.972549, 0.113725),Color3.new(1, 0.972549, 0.113725))
  639. LocalScript18.Name = "main"
  640. LocalScript18.Parent = Tool0
  641. table.insert(cors,sandbox(LocalScript18,function()
  642. --Impletion [awful coding i know]
  643. wait()
  644. explode=false
  645. soundlock=false
  646. lock=false
  647. script.Parent.Activated:connect(function(click)
  648. if lock==false then
  649. lock=true
  650. local char=script.Parent.Parent
  651. local anim=char.Humanoid:LoadAnimation(script.Parent.Animation)
  652. anim:Play()
  653. wait(1.4)
  654. lock=false
  655. end
  656. end)
  657.  
  658.  
  659.  
  660. script.Parent.Handle.Touched:connect(function(hit)
  661. local gethum=hit.Parent:GetChildren()
  662. for i=1,#gethum do
  663. if gethum[i].ClassName=="Humanoid" and gethum[i] ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and lock==true then
  664. local hum=gethum[i]
  665. hum.Sit=true
  666. if soundlock==false then
  667. soundlock=true
  668. script.Parent.Smash:Play()
  669. end
  670. local character=hit.Parent
  671. local b=character:GetChildren()
  672. for i=1,#b do
  673. if b[i]:IsA("Part") and b[i] ~= nil then
  674. b[i].CanCollide=false
  675. b[i].Anchored=false
  676. end
  677. end
  678. local torso=hit.Parent:findFirstChild("Torso")
  679. character.Torso.Velocity=game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 600
  680. character.Torso.Velocity=character.Torso.Velocity + Vector3.new(0,65,0)
  681. wait(5)
  682. if explode==false then
  683. explode=true
  684. local expl=Instance.new("Explosion", workspace)
  685. expl.BlastPressure=math.huge
  686. expl.BlastRadius=math.huge
  687. expl.Position=torso.Position
  688. character:BreakJoints()
  689. local p=game.Players:GetPlayerFromCharacter(character)
  690. character:Destroy()
  691. if p ~= nil then
  692. p:Destroy()
  693. end
  694. end
  695. end
  696. end
  697. wait(1)
  698. soundlock=false
  699. explode=false
  700. end)
  701.  
  702. script.Parent.Equipped:connect(function(equip)
  703. game.Players.LocalPlayer.Character.Humanoid.MaxHealth=250
  704. game.Players.LocalPlayer.Character.Humanoid.Health=250
  705. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed=16
  706. end)
  707. end))
  708. Sound19.Name = "Smash"
  709. Sound19.Parent = Tool0
  710. Sound19.SoundId = "rbxassetid://1183218037"
  711. for i,v in pairs(mas:GetChildren()) do
  712. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  713. pcall(function() v:MakeJoints() end)
  714. end
  715. mas:Destroy()
  716. for i,v in pairs(cors) do
  717. spawn(function()
  718. pcall(v)
  719. end)
  720. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement