Advertisement
iiJosephCats205

OP Explosion Tool

Dec 14th, 2019
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.67 KB | None | 0 0
  1. --By iiJoeCats (I randomly thinked about scripting this.)
  2. wait(3 + 1/60)
  3. local character = game.Players.LocalPlayer.Character
  4. local mouse = game.Players.LocalPlayer:GetMouse()
  5. local down = false
  6. local ammo = 1
  7. local deeznuts = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  8. deeznuts.CanBeDropped = false
  9. deeznuts.RequiresHandle = false
  10. deeznuts.Name = "succadick"
  11. deeznuts.ToolTip = "die"
  12. deeznuts.TextureId = "rbxassetid://900430966"
  13. function attack()
  14.     if ammo > 0 and down then
  15.         ammo = 0
  16.         local hb = Instance.new("Part",character["Right Arm"])
  17.         hb.Size = Vector3.new(0.05,0.05,0.05)
  18.         hb.Transparency = 0.4
  19.         hb:BreakJoints()
  20.         local wld = Instance.new("Weld",hb)
  21.         wld.Part0 = hb
  22.         wld.Part1 = character["Right Arm"]
  23.         wld.C0 = CFrame.new(0,0.75,0)
  24.         local bloodyhell = Instance.new("Sound",character)
  25.         bloodyhell.SoundId = "rbxassetid://207825136"
  26.         bloodyhell.Volume = 2
  27.         bloodyhell.MaxDistance = 400
  28.         bloodyhell:Play()
  29.         game.Debris:AddItem(bloodyhell,1.35)
  30.         local frick = Instance.new("Part",workspace)
  31.         game.Debris:AddItem(frick,3)
  32.         frick.Size = Vector3.new(1,1,1)
  33.         frick.CanCollide = false
  34.         frick.TopSurface = Enum.SurfaceType.Smooth
  35.         frick.BottomSurface = Enum.SurfaceType.Smooth
  36.         frick.Shape = Enum.PartType.Ball
  37.         frick.FormFactor = Enum.FormFactor.Custom
  38.         frick.CFrame = CFrame.new(hb.Position,mouse.Hit.p)
  39.         local fuuuu = Instance.new("BodyVelocity",frick)
  40.         fuuuu.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  41.         fuuuu.Velocity = frick.CFrame.LookVector * 300
  42.         frick.Touched:Connect(function(hit)
  43.             if hit:IsDescendantOf(character) then
  44.                 --nothing
  45.             else
  46.                 Instance.new("Explosion",workspace).Position = frick.Position
  47.             end
  48.         end)
  49.         wait(0.075)
  50.         ammo = 1
  51.     end
  52. end
  53. deeznuts.Equipped:Connect(function(mouse)
  54.     raWeld = Instance.new("Weld",character.Torso)
  55.     raWeld.Part0 = character.Torso
  56.     raWeld.Part1 = character["Right Arm"]
  57.     raWeld.C0 = CFrame.new(1.5,0,0)
  58.     local function tolerate()
  59.         for i = 0,1,0.25 do
  60.             game:GetService("RunService").RenderStepped:wait()
  61.             raWeld.C0 = raWeld.C0:lerp(CFrame.new(1.5,.5,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(0)),i)
  62.         end
  63.     end
  64.     spawn(tolerate)
  65.     mouse.Button1Down:Connect(function()
  66.         down = true
  67.         repeat
  68.             attack()
  69.         until down == false
  70.     end)
  71.     mouse.Button1Up:Connect(function()
  72.         down = false
  73.     end)
  74. end)
  75. deeznuts.Unequipped:Connect(function()
  76.     local function tolerate()
  77.         for i = 0,1,0.25 do
  78.             game:GetService("RunService").RenderStepped:wait()
  79.             raWeld.C0 = raWeld.C0:lerp(CFrame.new(1.5,0,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),i)
  80.         end
  81.     end
  82.     tolerate()
  83.     raWeld:Destroy()
  84.     down = false
  85. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement