Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local F = {}
- local Part = Instance.new("Part",workspace)
- Part.Name = "84829348829438327438"
- Part.Reflectance = 1
- Part.TopSurface = "Smooth"
- Part.BottomSurface = "Smooth"
- Part.Material = "SmoothPlastic"
- Part.Anchored = true
- Part.Position = Vector3.new(-250,250,-250)
- Part.Size = Vector3.new(100,1,100)
- owner.Character.HumanoidRootPart.CFrame = Part.CFrame + Vector3.new(0,3,0)
- local Part2 = Instance.new("Part",workspace)
- Part2.Name = "84829348829438327438"
- Part2.Reflectance = 1
- Part2.TopSurface = "Smooth"
- Part2.BottomSurface = "Smooth"
- Part2.Material = "SmoothPlastic"
- Part2.Anchored = false
- Part2.CanCollide = false
- Part2.Position = Part.Position + Vector3.new(50,50,0)
- Part2.Size = Vector3.new(1,100,100)
- local Body1 = Instance.new("BodyPosition")
- Body1.Parent = Part2
- Body1.Position = Part2.Position
- Body1.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body1)
- local Part3 = Instance.new("Part",workspace)
- Part3.Name = "84829348829438327438"
- Part3.Reflectance = 1
- Part3.TopSurface = "Smooth"
- Part3.BottomSurface = "Smooth"
- Part3.Material = "SmoothPlastic"
- Part3.Anchored = false
- Part3.CanCollide = false
- Part3.Position = Part.Position + Vector3.new(-50,50,0)
- Part3.Size = Vector3.new(1,100,100)
- local Body2 = Instance.new("BodyPosition")
- Body2.Parent = Part3
- Body2.Position = Part3.Position
- Body2.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body2)
- local Part4 = Instance.new("Part",workspace)
- Part4.Name = "84829348829438327438"
- Part4.Reflectance = 1
- Part4.TopSurface = "Smooth"
- Part4.BottomSurface = "Smooth"
- Part4.Material = "SmoothPlastic"
- Part4.Anchored = false
- Part4.CanCollide = false
- Part4.Position = Part.Position + Vector3.new(0,100,0)
- Part4.Size = Vector3.new(100,1,100)
- local Body3 = Instance.new("BodyPosition")
- Body3.Parent = Part4
- Body3.Position = Part4.Position
- Body3.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body3)
- local Part5 = Instance.new("Part",workspace)
- Part5.Name = "84829348829438327438"
- Part5.Reflectance = 1
- Part5.TopSurface = "Smooth"
- Part5.BottomSurface = "Smooth"
- Part5.Material = "SmoothPlastic"
- Part5.Anchored = false
- Part5.CanCollide = false
- Part5.Position = Part.Position + Vector3.new(0,50,50)
- Part5.Size = Vector3.new(100,100,1)
- local Body4 = Instance.new("BodyPosition")
- Body4.Parent = Part5
- Body4.Position = Part5.Position
- Body4.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body4)
- local Part6 = Instance.new("Part",workspace)
- Part6.Name = "84829348829438327438"
- Part6.Reflectance = 1
- Part6.TopSurface = "Smooth"
- Part6.BottomSurface = "Smooth"
- Part6.Material = "SmoothPlastic"
- Part6.Anchored = false
- Part6.CanCollide = false
- Part6.Position = Part.Position + Vector3.new(0,50,-50)
- Part6.Size = Vector3.new(100,100,1)
- local Body5 = Instance.new("BodyPosition")
- Body5.Parent = Part6
- Body5.Position = Part6.Position
- Body5.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body5)
- --Inside
- local Part7 = Instance.new("Part",workspace)
- Part7.Name = "84829348829438327438"
- Part7.Reflectance = 0
- Part7.TopSurface = "Smooth"
- Part7.BottomSurface = "Smooth"
- Part7.Material = "SmoothPlastic"
- Part7.Anchored = true
- Part7.Position = Part.Position + Vector3.new(0,1,0)
- Part7.Size = Vector3.new(99,1,99)
- local Part8 = Instance.new("Part",workspace)
- Part8.Name = "84829348829438327438"
- Part8.Reflectance = 0
- Part8.TopSurface = "Smooth"
- Part8.BottomSurface = "Smooth"
- Part8.Material = "SmoothPlastic"
- Part8.Anchored = false
- Part8.CanCollide = false
- Part8.Position = Part.Position + Vector3.new(0,99,0)
- Part8.Size = Vector3.new(99,1,99)
- local Body6 = Instance.new("BodyPosition")
- Body6.Parent = Part8
- Body6.Position = Part8.Position
- Body6.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body6)
- local Part9 = Instance.new("Part",workspace)
- Part9.Name = "84829348829438327438"
- Part9.Reflectance = 0
- Part9.TopSurface = "Smooth"
- Part9.BottomSurface = "Smooth"
- Part9.Material = "SmoothPlastic"
- Part9.Anchored = false
- Part9.CanCollide = false
- Part9.Position = Part.Position + Vector3.new(49,50,0)
- Part9.Size = Vector3.new(1,99,99)
- local Body7 = Instance.new("BodyPosition")
- Body7.Parent = Part9
- Body7.Position = Part9.Position
- Body7.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body7)
- local Part10 = Instance.new("Part",workspace)
- Part10.Name = "84829348829438327438"
- Part10.Reflectance = 0
- Part10.TopSurface = "Smooth"
- Part10.BottomSurface = "Smooth"
- Part10.Material = "SmoothPlastic"
- Part10.Anchored = false
- Part10.CanCollide = false
- Part10.Position = Part.Position + Vector3.new(-49,50,0)
- Part10.Size = Vector3.new(1,99,99)
- local Body8 = Instance.new("BodyPosition")
- Body8.Parent = Part10
- Body8.Position = Part10.Position
- Body8.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body8)
- local Part11 = Instance.new("Part",workspace)
- Part11.Name = "84829348829438327438"
- Part11.Reflectance = 0
- Part11.TopSurface = "Smooth"
- Part11.BottomSurface = "Smooth"
- Part11.Material = "SmoothPlastic"
- Part11.Anchored = false
- Part11.CanCollide = false
- Part11.Position = Part.Position + Vector3.new(0,50,49)
- Part11.Size = Vector3.new(99,99,1)
- local Body9 = Instance.new("BodyPosition")
- Body9.Parent = Part11
- Body9.Position = Part11.Position
- Body9.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body9)
- local Part12 = Instance.new("Part",workspace)
- Part12.Name = "84829348829438327438"
- Part12.Reflectance = 0
- Part12.TopSurface = "Smooth"
- Part12.BottomSurface = "Smooth"
- Part12.Material = "SmoothPlastic"
- Part12.Anchored = false
- Part12.CanCollide = false
- Part12.Position = Part.Position + Vector3.new(0,50,-49)
- Part12.Size = Vector3.new(99,99,1)
- local Body10 = Instance.new("BodyPosition")
- Body10.Parent = Part12
- Body10.Position = Part12.Position
- Body10.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- table.insert(F,Body10)
- local ScreenGui = Instance.new("ScreenGui",owner.PlayerGui)
- ScreenGui.Name = "Walls"
- local asd = Instance.new("TextButton",ScreenGui)
- asd.BackgroundColor3 = Color3.new(0,0,0)
- asd.BorderColor3 = Color3.new(0,0,0)
- asd.Name = "Walls"
- asd.Position = UDim2.new(1,-150,1,-190)
- asd.Size = UDim2.new(0,150,0,45)
- asd.Font = "SourceSansBold"
- asd.FontSize = "Size32"
- asd.Text = "Open"
- asd.TextColor3 = Color3.new(255,255,255)
- asd.MouseButton1Down:connect(function()
- if asd.Text == "Open" then
- for i,b in pairs(F) do
- b.Position = b.Position + Vector3.new(0,25,0)
- end
- asd.Text = "Close"
- else
- for i,b in pairs(F) do
- b.Position = b.Position - Vector3.new(0,25,0)
- end
- asd.Text = "Open"
- end
- end)
- while game.Workspace:FindFirstChild("84829348829438327438") do
- game.Lighting:SetMinutesAfterMidnight(0)
- wait(0.5)
- end
- game.Lighting:SetMinutesAfterMidnight(1000)
- ScreenGui:Remove()
Add Comment
Please, Sign In to add comment