Advertisement
karbis

spam bomb

Jul 26th, 2019
1,325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.43 KB | None | 0 0
  1. local tool = Instance.new("Tool", owner.Backpack)
  2. local handle = Instance.new("Part", tool)
  3. handle.Name = "Handle"
  4. tool.Name = "Bomb"
  5. local sound1,sound2 = Instance.new("Sound", tool), Instance.new("Sound", tool)
  6. sound1.SoundId = "rbxasset://sounds//Rocket shot.wav"
  7. sound1.Name = "boom"
  8. sound2.Name = "tick"
  9. sound2.SoundId = "rbxassetid://11565378"
  10. tool.CanBeDropped = false
  11. local mesh = Instance.new("SpecialMesh", handle)
  12. mesh.MeshType = "Sphere"
  13. tool.GripPos = Vector3.new(0, 0, 0.819)
  14. handle.Size = Vector3.new(2.03, 2.33, 2.1)
  15. handle.Material = Enum.Material.Ice
  16. handle.Color = Color3.fromRGB(17, 17, 17)
  17. tool.Activated:Connect(function()
  18.     local clone = handle:Clone()
  19.     clone.Name = "Bomb"
  20.     local sparkles = Instance.new("Sparkles", clone)
  21.     sparkles.SparkleColor = Color3.fromRGB(255,0,0)
  22.     clone.CanCollide = true
  23.     handle.CanCollide = false
  24.     clone.Parent = workspace
  25.     clone.CFrame = CFrame.new(handle.Position)
  26.     sound2:Play()
  27.     clone.BrickColor = BrickColor.new("Toothpaste")
  28.     wait(1)
  29.     clone.BrickColor = BrickColor.new("Black")
  30.     wait(1)
  31.     clone.BrickColor = BrickColor.new("Toothpaste")
  32.     wait(1)
  33.     clone.BrickColor = BrickColor.new("Black")
  34.     wait(1)
  35.     clone.BrickColor = BrickColor.new("Toothpaste")
  36.     sound2:Stop()
  37.     sound1:Play()
  38.     local boom = Instance.new("Explosion", clone)
  39.     boom.Position = clone.Position
  40.     boom.BlastRadius = 12
  41.     boom.BlastPressure = 100000
  42.     wait(0.2)
  43.     clone:Destroy()
  44.     handle.CanCollide = true
  45. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement