SHOW:
|
|
- or go back to the newest paste.
| 1 | local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
| |
| 2 | - | ScreenGui.Name = "Break" |
| 2 | + | ScreenGui.Name = "Boom" |
| 3 | local asd = Instance.new("TextButton",ScreenGui)
| |
| 4 | asd.BackgroundColor3 = Color3.new(0,0,0) | |
| 5 | asd.BorderColor3 = Color3.new(0,0,0) | |
| 6 | - | asd.Name = "Break" |
| 6 | + | asd.Name = "Boom" |
| 7 | - | asd.Position = UDim2.new(1,-150,1,-90) |
| 7 | + | asd.Position = UDim2.new(1,-150,1,-180) |
| 8 | asd.Size = UDim2.new(0,150,0,45) | |
| 9 | asd.Font = "SourceSansBold" | |
| 10 | asd.FontSize = "Size32" | |
| 11 | - | asd.Text = "Break" |
| 11 | + | asd.Text = "Boom!" |
| 12 | asd.TextColor3 = Color3.new(255,255,255) | |
| 13 | asd.MouseButton1Down:connect(function() | |
| 14 | - | local Point1 = Vector3.new(-2500,-10,-2500) |
| 14 | + | if owner.Character:FindFirstChild("ForceField") then
|
| 15 | - | local Point2 = Vector3.new(2500,2500,2000) |
| 15 | + | local Explosion = Instance.new("Explosion", owner.Character)
|
| 16 | - | local Region = Region3.new(Point1,Point2) |
| 16 | + | Explosion.BlastRadius = 100 |
| 17 | - | for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do |
| 17 | + | Explosion.Position = owner.Character.HumanoidRootPart.Position |
| 18 | - | Part.Anchored = false |
| 18 | + | else |
| 19 | - | Part.CanCollide = true |
| 19 | + | local ForceField = Instance.new("ForceField", owner.Character)
|
| 20 | - | end |
| 20 | + | ForceField.Visible = false |
| 21 | end | |
| 22 | end) |