Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
- ScreenGui.Name = "Break"
- local asd = Instance.new("TextButton",ScreenGui)
- asd.BackgroundColor3 = Color3.new(0,0,0)
- asd.BorderColor3 = Color3.new(0,0,0)
- asd.Name = "Break"
- asd.Position = UDim2.new(1,-150,1,-90)
- asd.Size = UDim2.new(0,150,0,45)
- asd.Font = "SourceSansBold"
- asd.FontSize = "Size32"
- asd.Text = "Break"
- asd.TextColor3 = Color3.new(255,255,255)
- asd.MouseButton1Down:connect(function()
- local Point1 = Vector3.new(-2500,-10,-2500)
- local Point2 = Vector3.new(2500,2500,2000)
- local Region = Region3.new(Point1,Point2)
- for _,Part in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
- Part.Anchored = false
- Part.CanCollide = true
- end
- end)
Add Comment
Please, Sign In to add comment