Advertisement
Guest User

FE Btools

a guest
Feb 11th, 2018
2,505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1. maind = nil
  2. if workspace:FindFirstChild'GiveSystem' then
  3.     if workspace.GiveSystem:FindFirstChild'GiveItem' then
  4.         maind = workspace.GiveSystem.GiveItem
  5.     end
  6. end
  7. if workspace:FindFirstChild'HandToCentre' then
  8.     if workspace.HandToCentre:FindFirstChild'SendItem' then
  9.         maind = workspace.HandToCentre.SendItem
  10.     end
  11. end
  12. if maind == nil then
  13.     print'could not find give event :('
  14.     return
  15. end
  16. tool = Instance.new'Tool'
  17. me = game:GetService'Players'.LocalPlayer
  18. tool.RequiresHandle = false
  19. tool.TextureId = 'http://www.roblox.com/asset/?id=12223874'
  20. tool.Name = '36OK Delete Tool'
  21. tool.Parent = me.Backpack
  22. buttonf = nil
  23. tool.Equipped:connect(function()
  24.     local m = game:GetService'Players'.LocalPlayer:GetMouse()
  25.     m.Icon = 'rbxasset://textures/HammerCursor.png'
  26.     buttonf = m.Button1Down:connect(function()
  27.         if m.Target == nil then return end
  28.         local ob = m.Target
  29.         if ob:IsA'BasePart' or ob:IsA'WedgePart' then
  30.             if ob:IsDescendantOf(me.Character) then return end
  31.             m.Icon = 'rbxasset://textures/HammerOverCursor.png'
  32.             local ex = Instance.new'Explosion'
  33.             ex.BlastRadius = 0
  34.             ex.Position = ob.Position
  35.             ex.Parent = workspace
  36.             maind:FireServer(workspace, ob)
  37.             wait(0.3)
  38.             m.Icon = 'rbxasset://textures/HammerCursor.png'
  39.         end
  40.     end)
  41. end)
  42. tool.Unequipped:connect(function()
  43.     if buttonf ~= nil then
  44.         buttonf:Disconnect()
  45.         buttonf = nil
  46.     end
  47.     local m = game:GetService'Players'.LocalPlayer:GetMouse()
  48.     m.Icon = ''
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement