Advertisement
Guest User

Bomb Spammer Script

a guest
Dec 27th, 2021
2,729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.14 KB | None | 0 0
  1. --Bomb Spammer Script
  2.  
  3. tool = Instance.new("Tool")
  4. tool.RequiresHandle = false
  5. tool.Name = "SmokeBomb Spammer"
  6. tool.TextureId = "rbxassetid://149185730"
  7. tool.Activated:connect(function()
  8. wait();
  9. local l__LocalPlayer__1 = game.Players.LocalPlayer;
  10. while l__LocalPlayer__1.Character == nil do
  11.     wait();
  12. end;
  13. local l__Character__2 = l__LocalPlayer__1.Character;
  14. while l__Character__2:FindFirstChild("Humanoid") == nil do
  15.     wait();
  16. end;
  17. while l__Character__2:FindFirstChild("HumanoidRootPart") == nil do
  18.     wait();
  19. end;
  20. enabled = true;
  21. local function u1()
  22.     local v3 = Instance.new("Part");
  23.     v3.Name = "Cloud";
  24.     v3.Material = "SmoothPlastic";
  25.     v3.BrickColor = BrickColor.new("Light stone grey");
  26.     v3.CanCollide = false;
  27.     v3.Shape = "Ball";
  28.     v3.Size = Vector3.new(1, 1, 1);
  29.     v3.TopSurface = "Smooth";
  30.     v3.BottomSurface = "Smooth";
  31.     local v4 = Instance.new("Sound");
  32.     v4.Name = "WooshSound";
  33.     v4.SoundId = "http://www.roblox.com/asset/?id=28166510";
  34.     v4.Pitch = math.random(8, 12) / 10;
  35.     v4.Parent = v3;
  36.     local v5 = Instance.new("Sound");
  37.     v5.Name = "HitSound";
  38.     v5.Volume = 1;
  39.     v5.SoundId = "http://www.roblox.com/asset/?id=93042083";
  40.     v5.Parent = v3;
  41.     local v6 = Instance.new("BodyForce");
  42.     v6.Name = "AntiGrav";
  43.     v6.force = Vector3.new(0, v3:GetMass() * 196.2 * 0.8, 0);
  44.     v6.Parent = v3;
  45.     return v3;
  46. end;
  47. local l__Torso__2 = l__Character__2:FindFirstChild("Torso");
  48. local l__Humanoid__3 = l__Character__2:FindFirstChild("Humanoid");
  49. local function u4(p1)
  50.     local v7 = u1();
  51.     if (p1 - l__Torso__2.Position).magnitude < 9 then
  52.         v7.CFrame = CFrame.new(p1 + Vector3.new(0, 1.5, 0));
  53.         v7.Velocity = Vector3.new(0, -5, 0);
  54.     else
  55.         v7.CFrame = CFrame.new(l__Torso__2.CFrame * Vector3.new(0, 1, -1));
  56.         v7.CFrame = CFrame.new(v7.Position, p1) * CFrame.new(0, 0, 1);
  57.         v7.Velocity = v7.CFrame.lookVector * 75;
  58.     end;
  59.     local v8 = Instance.new("ObjectValue");
  60.     v8.Name = "creator";
  61.     v8.Value = l__LocalPlayer__1;
  62.     v8.Parent = v7;
  63.     v7.Parent = game.Workspace._Projectiles;
  64.     coroutine.resume(coroutine.create(function()
  65.         if v7:FindFirstChild("WooshSound") then
  66.             v7:FindFirstChild("WooshSound"):Play();
  67.         end;
  68.         local u5 = false;
  69.         local function u6()
  70.             if v7:FindFirstChild("HitSound") then
  71.                 v7:FindFirstChild("HitSound"):Play();
  72.             end;
  73.             v7.Anchored = true;
  74.             v7.BrickColor = BrickColor.new("White");
  75.             v7.CFrame = CFrame.new(v7.Position + Vector3.new(0, 3.5, 0));
  76.             local v9 = Instance.new("SpecialMesh");
  77.             v9.MeshId = "http://www.roblox.com/asset/?id=111820358";
  78.             v9.Scale = Vector3.new(45, 45, 33.75);
  79.             v9.Parent = v7;
  80.             game.ReplicatedStorage.RemoteTriggers.CreateFlash:FireServer(v7.Position, 21);
  81.             game.Debris:AddItem(v7, 6);
  82.             for v10 = 1, 100 do
  83.                 if v7 ~= nil then
  84.                     v7.Transparency = v10 / 150 + 0.5;
  85.                     v9.Scale = v9.Scale + Vector3.new(0.32, 0.32, 0.24);
  86.                     wait(0.05);
  87.                 end;
  88.             end;
  89.             wait();
  90.             v7:Destroy();
  91.         end;
  92.         v7.Touched:connect(function(p2)
  93.             if p2 == nil then
  94.                 return;
  95.             end;
  96.             if p2.Parent == nil then
  97.                 return;
  98.             end;
  99.             if u5 then
  100.                 return;
  101.             end;
  102.             local v11 = nil;
  103.             if p2.Parent:FindFirstChild("Humanoid") then
  104.                 v11 = p2.Parent:FindFirstChild("Humanoid");
  105.             end;
  106.             if p2.Parent:IsA("Hat") and p2.Parent.Parent:FindFirstChild("Humanoid") then
  107.                 v11 = p2.Parent.Parent:FindFirstChild("Humanoid");
  108.             end;
  109.             if v11 ~= nil then
  110.                 if v8.Value == nil then
  111.                     return;
  112.                 end;
  113.                 if v8.Value.Character == nil then
  114.                     return;
  115.                 end;
  116.                 if v11.Parent == v8.Value.Character then
  117.                     return;
  118.                 end;
  119.             else
  120.                 if p2.CanCollide == true then
  121.                     u5 = true;
  122.                     u6();
  123.                 end;
  124.                 return;
  125.             end;
  126.             u5 = true;
  127.             u6();
  128.         end);
  129.         wait(5);
  130.         if not u5 then
  131.             v7:Destroy();
  132.         end;
  133.     end));
  134. end;
  135. tool.Equipped:connect(function(p3)
  136.     p3.Icon = "rbxasset://textures\\GunCursor.png";
  137.     p3.Button1Down:connect(function()
  138.         if not enabled or l__Humanoid__3.Health <= 0 then
  139.             return;
  140.         end;
  141.         enabled = false;
  142.         p3.Icon = "rbxasset://textures\\GunWaitCursor.png";
  143.         u4(p3.Hit.p);
  144.         Wait(0.000001);
  145.         enabled = true;
  146.         p3.Icon = "rbxasset://textures\\GunCursor.png";
  147.     end);
  148. end);
  149.  
  150. end)
  151. tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement