SebTDZ

Break Game

Jul 1st, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
  2. ScreenGui.Name = "Break"
  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"
  7. asd.Position = UDim2.new(1,-150,1,-90)
  8. asd.Size = UDim2.new(0,150,0,45)
  9. asd.Font = "SourceSansBold"
  10. asd.FontSize = "Size32"
  11. asd.Text = "Break"
  12. asd.TextColor3 = Color3.new(255,255,255)
  13. asd.MouseButton1Down:connect(function()
  14. local Point1 = Vector3.new(-2500,-10,-2500)
  15. local Point2 = Vector3.new(2500,2500,2000)
  16. local Region = Region3.new(Point1,Point2)
  17. for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  18.     Part.Anchored = false
  19.     Part.CanCollide = true
  20. end
  21. end)
Add Comment
Please, Sign In to add comment