Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- BlockMesh2 = Instance.new("BlockMesh")
- Model3 = Instance.new("Model")
- Part4 = Instance.new("Part")
- BlockMesh5 = Instance.new("BlockMesh")
- Model6 = Instance.new("Model")
- Model7 = Instance.new("Model")
- Part8 = Instance.new("Part")
- BlockMesh9 = Instance.new("BlockMesh")
- Model10 = Instance.new("Model")
- Model11 = Instance.new("Model")
- Model12 = Instance.new("Model")
- Model13 = Instance.new("Model")
- Part14 = Instance.new("Part")
- ClickDetector15 = Instance.new("ClickDetector")
- BlockMesh16 = Instance.new("BlockMesh")
- Part17 = Instance.new("Part")
- ClickDetector18 = Instance.new("ClickDetector")
- BlockMesh19 = Instance.new("BlockMesh")
- Decal20 = Instance.new("Decal")
- Part21 = Instance.new("Part")
- ClickDetector22 = Instance.new("ClickDetector")
- BlockMesh23 = Instance.new("BlockMesh")
- Decal24 = Instance.new("Decal")
- Part25 = Instance.new("Part")
- BlockMesh26 = Instance.new("BlockMesh")
- Part27 = Instance.new("Part")
- BlockMesh28 = Instance.new("BlockMesh")
- Part29 = Instance.new("Part")
- BlockMesh30 = Instance.new("BlockMesh")
- Part31 = Instance.new("Part")
- BlockMesh32 = Instance.new("BlockMesh")
- Script33 = Instance.new("Script")
- Part34 = Instance.new("Part")
- BlockMesh35 = Instance.new("BlockMesh")
- Model36 = Instance.new("Model")
- Part37 = Instance.new("Part")
- BlockMesh38 = Instance.new("BlockMesh")
- Model39 = Instance.new("Model")
- Part40 = Instance.new("Part")
- BlockMesh41 = Instance.new("BlockMesh")
- Part42 = Instance.new("Part")
- BlockMesh43 = Instance.new("BlockMesh")
- Part44 = Instance.new("Part")
- BlockMesh45 = Instance.new("BlockMesh")
- Part46 = Instance.new("Part")
- BlockMesh47 = Instance.new("BlockMesh")
- Part48 = Instance.new("Part")
- ClickDetector49 = Instance.new("ClickDetector")
- CylinderMesh50 = Instance.new("CylinderMesh")
- Part51 = Instance.new("Part")
- BlockMesh52 = Instance.new("BlockMesh")
- Script53 = Instance.new("Script")
- Script54 = Instance.new("Script")
- Script55 = Instance.new("Script")
- Part56 = Instance.new("Part")
- BlockMesh57 = Instance.new("BlockMesh")
- Model58 = Instance.new("Model")
- Part59 = Instance.new("Part")
- BlockMesh60 = Instance.new("BlockMesh")
- Part61 = Instance.new("Part")
- ClickDetector62 = Instance.new("ClickDetector")
- BlockMesh63 = Instance.new("BlockMesh")
- Decal64 = Instance.new("Decal")
- Script65 = Instance.new("Script")
- Part66 = Instance.new("Part")
- BlockMesh67 = Instance.new("BlockMesh")
- Part68 = Instance.new("Part")
- BlockMesh69 = Instance.new("BlockMesh")
- Part70 = Instance.new("Part")
- BlockMesh71 = Instance.new("BlockMesh")
- Part72 = Instance.new("Part")
- BlockMesh73 = Instance.new("BlockMesh")
- Part74 = Instance.new("Part")
- BlockMesh75 = Instance.new("BlockMesh")
- Part76 = Instance.new("Part")
- BlockMesh77 = Instance.new("BlockMesh")
- Part78 = Instance.new("Part")
- BlockMesh79 = Instance.new("BlockMesh")
- Part80 = Instance.new("Part")
- BlockMesh81 = Instance.new("BlockMesh")
- Model82 = Instance.new("Model")
- Part83 = Instance.new("Part")
- BlockMesh84 = Instance.new("BlockMesh")
- Part85 = Instance.new("Part")
- Script86 = Instance.new("Script")
- VelocityMotor87 = Instance.new("VelocityMotor")
- Part88 = Instance.new("Part")
- BlockMesh89 = Instance.new("BlockMesh")
- Part90 = Instance.new("Part")
- BlockMesh91 = Instance.new("BlockMesh")
- Part92 = Instance.new("Part")
- BlockMesh93 = Instance.new("BlockMesh")
- Model0.Name = "The Rock V2 By eugenevorld"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Institutional white")
- Part1.Rotation = Vector3.new(179.779999, 89.9700012, -178.839996)
- Part1.Anchored = true
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.Size = Vector3.new(36, 1, 45)
- Part1.CFrame = CFrame.new(-17.5, 9.50007439, 3, -2.98023259e-08, 6.04288175e-10, 0.999999821, 1.92723448e-07, 0.999999821, -1.16855858e-10, -0.999999821, 1.93081334e-07, -2.98023402e-08)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part1.Position = Vector3.new(-17.5, 9.50007439, 3)
- Part1.Orientation = Vector3.new(0, 90, 0)
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- BlockMesh2.Parent = Part1
- Model3.Name = "The Rock V1.01 By eugenevorld"
- Model3.Parent = Model0
- Part4.Parent = Model3
- Part4.BrickColor = BrickColor.new("Reddish brown")
- Part4.Rotation = Vector3.new(0, -90, 0)
- Part4.Anchored = true
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.Size = Vector3.new(19, 10, 1)
- Part4.CFrame = CFrame.new(-20.5, 16.0000744, 0.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part4.Position = Vector3.new(-20.5, 16.0000744, 0.5)
- Part4.Orientation = Vector3.new(0, -90, 0)
- Part4.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh5.Parent = Part4
- BlockMesh5.Scale = Vector3.new(1, 1, 1.00999999)
- BlockMesh5.Scale = Vector3.new(1, 1, 1.00999999)
- Model6.Parent = Model3
- Model7.Parent = Model6
- Part8.Parent = Model7
- Part8.BrickColor = BrickColor.new("Institutional white")
- Part8.Reflectance = 0.10000000149012
- Part8.Transparency = 0.40000000596046
- Part8.Rotation = Vector3.new(180, 0, -180)
- Part8.Anchored = true
- Part8.FormFactor = Enum.FormFactor.Custom
- Part8.Size = Vector3.new(17, 6.5, 1)
- Part8.CFrame = CFrame.new(-11.5, 17.6351128, 9.5, -1, 0, -0, -0, 1, -0, -0, 0, -1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part8.Position = Vector3.new(-11.5, 17.6351128, 9.5)
- Part8.Orientation = Vector3.new(0, -180, 0)
- Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
- BlockMesh9.Parent = Part8
- BlockMesh9.Scale = Vector3.new(1.05999994, 1, 0)
- BlockMesh9.Scale = Vector3.new(1.05999994, 1, 0)
- Model10.Parent = Model7
- Model11.Parent = Model10
- Model12.Name = "Door"
- Model12.Parent = Model11
- Model13.Name = "Window"
- Model13.Parent = Model12
- Part14.Name = "Button"
- Part14.Parent = Model13
- Part14.BrickColor = BrickColor.new("White")
- Part14.Rotation = Vector3.new(-180, 90, 0)
- Part14.Anchored = true
- Part14.FormFactor = Enum.FormFactor.Plate
- Part14.Size = Vector3.new(1, 2, 1)
- Part14.CFrame = CFrame.new(-20.4000092, 16.4000797, -6.5, -4.37113883e-08, 0, 1, -5.39620441e-06, -1, -2.35875582e-13, 1, -5.39620441e-06, 4.37113883e-08)
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part14.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part14.Position = Vector3.new(-20.4000092, 16.4000797, -6.5)
- Part14.Orientation = Vector3.new(0, 90, -180)
- Part14.Color = Color3.new(0.94902, 0.952941, 0.952941)
- ClickDetector15.Name = "Click"
- ClickDetector15.Parent = Part14
- BlockMesh16.Parent = Part14
- Part17.Name = "Down"
- Part17.Parent = Model13
- Part17.BrickColor = BrickColor.new("Institutional white")
- Part17.Rotation = Vector3.new(180, -90, 0)
- Part17.Anchored = true
- Part17.FormFactor = Enum.FormFactor.Plate
- Part17.Size = Vector3.new(1, 0.800000012, 1)
- Part17.CFrame = CFrame.new(-20.5, 15.8000622, -6.5, -0, -0, -1, -0, -1, -0, -1, -0, -0)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part17.Position = Vector3.new(-20.5, 15.8000622, -6.5)
- Part17.Orientation = Vector3.new(0, -90, -180)
- Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
- ClickDetector18.Name = "Click"
- ClickDetector18.Parent = Part17
- BlockMesh19.Parent = Part17
- BlockMesh19.Offset = Vector3.new(0, 0, -0.100000001)
- Decal20.Parent = Part17
- Decal20.Texture = "http://www.roblox.com/asset/?id=38186614"
- Part21.Name = "Up"
- Part21.Parent = Model13
- Part21.BrickColor = BrickColor.new("Institutional white")
- Part21.Rotation = Vector3.new(63.4300003, -89.9799957, 63.4300003)
- Part21.Anchored = true
- Part21.FormFactor = Enum.FormFactor.Plate
- Part21.Size = Vector3.new(1, 0.800000012, 1)
- Part21.CFrame = CFrame.new(-20.5, 17.1001282, -6.5, 0.000154425303, -0.000308850722, -0.99999994, 1.1920929e-07, 0.99999994, -0.000308850722, 1, -8.94069672e-08, 0.000154425346)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part21.Position = Vector3.new(-20.5, 17.1001282, -6.5)
- Part21.Orientation = Vector3.new(0.0199999996, -89.9899979, 0)
- Part21.Color = Color3.new(0.972549, 0.972549, 0.972549)
- ClickDetector22.Name = "Click"
- ClickDetector22.Parent = Part21
- BlockMesh23.Parent = Part21
- BlockMesh23.Offset = Vector3.new(0, 0, -0.100000001)
- Decal24.Parent = Part21
- Decal24.Texture = "http://www.roblox.com/asset/?id=38186614"
- Part25.Parent = Model13
- Part25.BrickColor = BrickColor.new("Reddish brown")
- Part25.Rotation = Vector3.new(180, 0, -180)
- Part25.Anchored = true
- Part25.FormFactor = Enum.FormFactor.Symmetric
- Part25.Size = Vector3.new(19, 1, 20)
- Part25.CFrame = CFrame.new(-11.5, 10.5000801, 0, -1, 0, -0, -0, 1, -0, -0, 0, -1)
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.TopSurface = Enum.SurfaceType.Smooth
- Part25.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part25.Position = Vector3.new(-11.5, 10.5000801, 0)
- Part25.Orientation = Vector3.new(0, -180, 0)
- Part25.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh26.Parent = Part25
- Part27.Name = "Bar"
- Part27.Parent = Model13
- Part27.BrickColor = BrickColor.new("Reddish brown")
- Part27.Rotation = Vector3.new(0, 90, 0)
- Part27.Anchored = true
- Part27.FormFactor = Enum.FormFactor.Symmetric
- Part27.Size = Vector3.new(18, 10, 1)
- Part27.CFrame = CFrame.new(-2.5, 16.0000744, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.TopSurface = Enum.SurfaceType.Smooth
- Part27.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part27.Position = Vector3.new(-2.5, 16.0000744, 0)
- Part27.Orientation = Vector3.new(0, 90, 0)
- Part27.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh28.Parent = Part27
- BlockMesh28.Scale = Vector3.new(1.00999999, 1, 1.00999999)
- BlockMesh28.Scale = Vector3.new(1.00999999, 1, 1.00999999)
- Part29.Name = "Bar"
- Part29.Parent = Model13
- Part29.BrickColor = BrickColor.new("Reddish brown")
- Part29.Anchored = true
- Part29.FormFactor = Enum.FormFactor.Symmetric
- Part29.Size = Vector3.new(18, 10, 1)
- Part29.CFrame = CFrame.new(-11, 16.0000744, 9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part29.BottomSurface = Enum.SurfaceType.Smooth
- Part29.TopSurface = Enum.SurfaceType.Smooth
- Part29.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part29.Position = Vector3.new(-11, 16.0000744, 9.5)
- Part29.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh30.Parent = Part29
- BlockMesh30.Scale = Vector3.new(1.00999999, 1, 1.00999999)
- BlockMesh30.Scale = Vector3.new(1.00999999, 1, 1.00999999)
- Part31.Parent = Model13
- Part31.BrickColor = BrickColor.new("Reddish brown")
- Part31.Rotation = Vector3.new(0, 90, 0)
- Part31.Anchored = true
- Part31.FormFactor = Enum.FormFactor.Symmetric
- Part31.Size = Vector3.new(20, 1, 19)
- Part31.CFrame = CFrame.new(-11.5, 21.5001411, 0, -0, 0, 1, -0, 1, 0, -1, 0, 0)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part31.Position = Vector3.new(-11.5, 21.5001411, 0)
- Part31.Orientation = Vector3.new(0, 90, 0)
- Part31.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh32.Parent = Part31
- Script33.Name = "Main"
- Script33.Parent = Model13
- table.insert(cors,sandbox(Script33,function()
- local _items = {}
- local door = -1
- -- -1 = Closed
- -- 0 = Active
- -- 1 = Open
- function getItems()
- for _,v in pairs(script.Parent:GetChildren()) do
- if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
- table.insert(_items,v)
- end
- end
- end
- function main()
- local d = door
- door = 0
- script.Parent.Button.BrickColor = BrickColor.new("White")
- for i = 0,5,0.05 do
- for _,v in pairs(_items) do
- v.CFrame = v.CFrame * CFrame.new(0,(0.065*(-d)),0)
- end
- wait()
- end
- if (d == (-1)) then
- script.Parent.Button.BrickColor = BrickColor.new("White")
- elseif (d == 1) then
- script.Parent.Button.BrickColor = BrickColor.new("White")
- end
- door = d
- end
- script.Parent.Button.Click.MouseClick:connect(function()
- if (door == 0) then return end
- door = (door*(-1))
- main()
- end)
- getItems()
- end))
- Part34.Parent = Model7
- Part34.BrickColor = BrickColor.new("Institutional white")
- Part34.Reflectance = 0.10000000149012
- Part34.Transparency = 0.40000000596046
- Part34.Rotation = Vector3.new(0, 90, 0)
- Part34.Anchored = true
- Part34.FormFactor = Enum.FormFactor.Custom
- Part34.Size = Vector3.new(19, 6.5, 1)
- Part34.CFrame = CFrame.new(-2.5, 17.6351128, 0.5, -0, 0, 1, -0, 1, 0, -1, 0, 0)
- Part34.BottomSurface = Enum.SurfaceType.Smooth
- Part34.TopSurface = Enum.SurfaceType.Smooth
- Part34.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part34.Position = Vector3.new(-2.5, 17.6351128, 0.5)
- Part34.Orientation = Vector3.new(0, 90, 0)
- Part34.Color = Color3.new(0.972549, 0.972549, 0.972549)
- BlockMesh35.Parent = Part34
- BlockMesh35.Scale = Vector3.new(0.949999988, 1, 0)
- BlockMesh35.Scale = Vector3.new(0.949999988, 1, 0)
- Model36.Name = "Door"
- Model36.Parent = Model7
- Part37.Parent = Model36
- Part37.BrickColor = BrickColor.new("Reddish brown")
- Part37.Anchored = true
- Part37.FormFactor = Enum.FormFactor.Symmetric
- Part37.Size = Vector3.new(9, 10, 1)
- Part37.CFrame = CFrame.new(-16.5, 16.0000744, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.TopSurface = Enum.SurfaceType.Smooth
- Part37.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part37.Position = Vector3.new(-16.5, 16.0000744, -9.5)
- Part37.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh38.Parent = Part37
- BlockMesh38.Scale = Vector3.new(1, 1, 1.00999999)
- BlockMesh38.Scale = Vector3.new(1, 1, 1.00999999)
- Model39.Name = "Front Door"
- Model39.Parent = Model36
- Part40.Name = "Bar"
- Part40.Parent = Model39
- Part40.Rotation = Vector3.new(103.669998, 89.8499985, -118.709999)
- Part40.Anchored = true
- Part40.FormFactor = Enum.FormFactor.Plate
- Part40.Size = Vector3.new(1, 0.400000006, 8)
- Part40.CFrame = CFrame.new(-7.57494307, 20.6008492, -9.49996758, -9.60408144e-08, 1.75326022e-07, 0.999996603, 5.61509751e-06, 0.999996185, -2.64815299e-07, -0.999993742, 5.57351223e-06, -6.44322995e-08)
- Part40.BottomSurface = Enum.SurfaceType.Smooth
- Part40.TopSurface = Enum.SurfaceType.Smooth
- Part40.Position = Vector3.new(-7.57494307, 20.6008492, -9.49996758)
- Part40.Orientation = Vector3.new(0, 90, 0)
- BlockMesh41.Parent = Part40
- Part42.Name = "Bar1"
- Part42.Parent = Model39
- Part42.BrickColor = BrickColor.new("Deep blue")
- Part42.Transparency = 0.20000000298023
- Part42.Rotation = Vector3.new(-85.5299988, -89.8499985, -73.3799973)
- Part42.Anchored = true
- Part42.FormFactor = Enum.FormFactor.Symmetric
- Part42.Size = Vector3.new(1, 9, 8)
- Part42.CFrame = CFrame.new(-7.57494307, 15.9001541, -9.5, 5.23295753e-08, 1.75326022e-07, -0.999996603, -5.61509751e-06, 0.999996185, 2.64815554e-07, 0.999993742, 5.57351223e-06, 2.07211848e-08)
- Part42.BottomSurface = Enum.SurfaceType.Smooth
- Part42.TopSurface = Enum.SurfaceType.Smooth
- Part42.Color = Color3.new(0.129412, 0.329412, 0.72549)
- Part42.Position = Vector3.new(-7.57494307, 15.9001541, -9.5)
- Part42.Orientation = Vector3.new(0, -90, 0)
- Part42.Color = Color3.new(0.129412, 0.329412, 0.72549)
- BlockMesh43.Parent = Part42
- BlockMesh43.Scale = Vector3.new(0, 1, 1)
- BlockMesh43.Scale = Vector3.new(0, 1, 1)
- Part44.Name = "Bar2"
- Part44.Parent = Model39
- Part44.Rotation = Vector3.new(90, 0, -90)
- Part44.Anchored = true
- Part44.FormFactor = Enum.FormFactor.Plate
- Part44.Size = Vector3.new(1, 0.400000006, 9)
- Part44.CFrame = CFrame.new(-11.7750702, 15.5001459, -9.5, 0, 1, 0, 0, 0, -1, -1, 0, 0)
- Part44.BottomSurface = Enum.SurfaceType.Smooth
- Part44.TopSurface = Enum.SurfaceType.Smooth
- Part44.Position = Vector3.new(-11.7750702, 15.5001459, -9.5)
- Part44.Orientation = Vector3.new(90, 90, 0)
- BlockMesh45.Parent = Part44
- BlockMesh45.Offset = Vector3.new(0, 0, -0.409999996)
- BlockMesh45.Scale = Vector3.new(1, 1, 1.09000003)
- BlockMesh45.Scale = Vector3.new(1, 1, 1.09000003)
- Part46.Name = "Bar"
- Part46.Parent = Model39
- Part46.Rotation = Vector3.new(103.669998, 89.8499985, -118.709999)
- Part46.Anchored = true
- Part46.FormFactor = Enum.FormFactor.Plate
- Part46.Size = Vector3.new(1, 0.400000006, 8)
- Part46.CFrame = CFrame.new(-7.57494307, 11.2002859, -9.50002956, -9.60408144e-08, 1.75326022e-07, 0.999996603, 5.61509751e-06, 0.999996185, -2.64815299e-07, -0.999993742, 5.57351223e-06, -6.44322995e-08)
- Part46.BottomSurface = Enum.SurfaceType.Smooth
- Part46.TopSurface = Enum.SurfaceType.Smooth
- Part46.Position = Vector3.new(-7.57494307, 11.2002859, -9.50002956)
- Part46.Orientation = Vector3.new(0, 90, 0)
- BlockMesh47.Parent = Part46
- Part48.Name = "Button"
- Part48.Parent = Model39
- Part48.BrickColor = BrickColor.new("Bright blue")
- Part48.Rotation = Vector3.new(90, 0, -180)
- Part48.Anchored = true
- Part48.FormFactor = Enum.FormFactor.Plate
- Part48.Size = Vector3.new(1, 1.20000005, 1)
- Part48.CFrame = CFrame.new(-13.5, 16.0001545, -9.5, -1, 1.50995803e-07, 2.90524982e-09, -2.90524316e-09, 4.37113883e-08, -1, -1.50995803e-07, -1, -4.37113883e-08)
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.TopSurface = Enum.SurfaceType.Smooth
- Part48.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- Part48.Position = Vector3.new(-13.5, 16.0001545, -9.5)
- Part48.Orientation = Vector3.new(90, 180, 0)
- Part48.Color = Color3.new(0.0509804, 0.411765, 0.67451)
- ClickDetector49.Name = "Click"
- ClickDetector49.Parent = Part48
- CylinderMesh50.Parent = Part48
- Part51.Name = "Bar2"
- Part51.Parent = Model39
- Part51.Rotation = Vector3.new(90, 0, -90)
- Part51.Anchored = true
- Part51.FormFactor = Enum.FormFactor.Plate
- Part51.Size = Vector3.new(1, 0.400000006, 9)
- Part51.CFrame = CFrame.new(-3.37502909, 15.5001621, -9.5, -5.05827074e-07, 1, -3.50978155e-07, 5.65802884e-06, -3.50975284e-07, -1, -1, -5.05829064e-07, -5.65802884e-06)
- Part51.BottomSurface = Enum.SurfaceType.Smooth
- Part51.TopSurface = Enum.SurfaceType.Smooth
- Part51.Position = Vector3.new(-3.37502909, 15.5001621, -9.5)
- Part51.Orientation = Vector3.new(90, 90, 0)
- BlockMesh52.Parent = Part51
- BlockMesh52.Offset = Vector3.new(0, 0, -0.409999996)
- BlockMesh52.Scale = Vector3.new(1, 1, 1.09000003)
- BlockMesh52.Scale = Vector3.new(1, 1, 1.09000003)
- Script53.Name = "Main"
- Script53.Parent = Model39
- table.insert(cors,sandbox(Script53,function()
- local _items = {}
- local door = -1
- -- -1 = Closed
- -- 0 = Active
- -- 1 = Open
- function getItems()
- for _,v in pairs(script.Parent:GetChildren()) do
- if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
- table.insert(_items,v)
- end
- end
- end
- function main()
- local d = door
- door = 0
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- for i = 0,5,0.05 do
- for _,v in pairs(_items) do
- v.CFrame = v.CFrame * CFrame.new(0,0,(0.075*(-d)))
- end
- wait()
- end
- if (d == (-1)) then
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- elseif (d == 1) then
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- end
- door = d
- end
- script.Parent.Button.Click.MouseClick:connect(function()
- if (door == 0) then return end
- door = (door*(-1))
- main()
- end)
- getItems()
- end))
- Script54.Name = "Main1"
- Script54.Parent = Model39
- table.insert(cors,sandbox(Script54,function()
- local _items = {}
- local door = -1
- -- -1 = Closed
- -- 0 = Active
- -- 1 = Open
- function getItems()
- for _,v in pairs(script.Parent:GetChildren()) do
- if ((v:IsA("BasePart")) and (v.Name == "Bar1")) then
- table.insert(_items,v)
- end
- end
- end
- function main()
- local d = door
- door = 0
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- for i = 0,5,0.05 do
- for _,v in pairs(_items) do
- v.CFrame = v.CFrame * CFrame.new(0,0,(-0.075*(-d)))
- end
- wait()
- end
- if (d == (-1)) then
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- elseif (d == 1) then
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- end
- door = d
- end
- script.Parent.Button.Click.MouseClick:connect(function()
- if (door == 0) then return end
- door = (door*(-1))
- main()
- end)
- getItems()
- end))
- Script55.Name = "Main2"
- Script55.Parent = Model39
- table.insert(cors,sandbox(Script55,function()
- local _items = {}
- local door = -1
- -- -1 = Closed
- -- 0 = Active
- -- 1 = Open
- function getItems()
- for _,v in pairs(script.Parent:GetChildren()) do
- if ((v:IsA("BasePart")) and (v.Name == "Bar2")) then
- table.insert(_items,v)
- end
- end
- end
- function main()
- local d = door
- door = 0
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- for i = 0,5,0.05 do
- for _,v in pairs(_items) do
- v.CFrame = v.CFrame * CFrame.new(0,(0.075*(-d)),0)
- end
- wait()
- end
- if (d == (-1)) then
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- elseif (d == 1) then
- script.Parent.Button.BrickColor = BrickColor.new("Bright blue")
- end
- door = d
- end
- script.Parent.Button.Click.MouseClick:connect(function()
- if (door == 0) then return end
- door = (door*(-1))
- main()
- end)
- getItems()
- end))
- Part56.Parent = Model39
- Part56.Anchored = true
- Part56.FormFactor = Enum.FormFactor.Symmetric
- Part56.Size = Vector3.new(2, 3, 1)
- Part56.CFrame = CFrame.new(-13.5, 15.5001459, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part56.BottomSurface = Enum.SurfaceType.Smooth
- Part56.TopSurface = Enum.SurfaceType.Smooth
- Part56.Position = Vector3.new(-13.5, 15.5001459, -9.5)
- BlockMesh57.Parent = Part56
- BlockMesh57.Scale = Vector3.new(0.800000012, 0.800000012, 1.01999998)
- BlockMesh57.Scale = Vector3.new(0.800000012, 0.800000012, 1.01999998)
- Model58.Name = "Lock"
- Model58.Parent = Model39
- Part59.Name = "Bar"
- Part59.Parent = Model58
- Part59.BrickColor = BrickColor.new("Reddish brown")
- Part59.Rotation = Vector3.new(-180, 0, 0)
- Part59.Anchored = true
- Part59.FormFactor = Enum.FormFactor.Plate
- Part59.Size = Vector3.new(3, 3.20000005, 1)
- Part59.CFrame = CFrame.new(-13.5, 15.9001741, -9.50378418, 1, -1.40629709e-06, 6.63844517e-08, -1.40629709e-06, -1, 1.50995803e-07, 6.63842386e-08, -1.50995902e-07, -1)
- Part59.BottomSurface = Enum.SurfaceType.Smooth
- Part59.TopSurface = Enum.SurfaceType.Smooth
- Part59.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part59.Position = Vector3.new(-13.5, 15.9001741, -9.50378418)
- Part59.Orientation = Vector3.new(0, 180, -180)
- Part59.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh60.Parent = Part59
- Part61.Name = "Button"
- Part61.Parent = Model58
- Part61.BrickColor = BrickColor.new("White")
- Part61.Rotation = Vector3.new(-90, 0, 0)
- Part61.Anchored = true
- Part61.FormFactor = Enum.FormFactor.Plate
- Part61.Size = Vector3.new(2, 1.20000005, 2)
- Part61.CFrame = CFrame.new(-15.5, 15.5001221, -9.3000021, 1, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
- Part61.BottomSurface = Enum.SurfaceType.Smooth
- Part61.TopSurface = Enum.SurfaceType.Smooth
- Part61.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part61.Position = Vector3.new(-15.5, 15.5001221, -9.3000021)
- Part61.Orientation = Vector3.new(-90, 0, 0)
- Part61.Color = Color3.new(0.94902, 0.952941, 0.952941)
- ClickDetector62.Name = "Click"
- ClickDetector62.Parent = Part61
- BlockMesh63.Parent = Part61
- BlockMesh63.Scale = Vector3.new(0.75, 0.550000012, 0.75)
- BlockMesh63.Scale = Vector3.new(0.75, 0.550000012, 0.75)
- Decal64.Parent = Part61
- Decal64.Texture = "http://www.roblox.com/asset/?id=11344402"
- Decal64.Face = Enum.NormalId.Bottom
- Script65.Name = "Main"
- Script65.Parent = Model58
- table.insert(cors,sandbox(Script65,function()
- local _items = {}
- local door = -1
- -- -1 = Unlocked
- -- 0 = Active
- -- 1 = Locked
- function getItems()
- for _,v in pairs(script.Parent:GetChildren()) do
- if ((v:IsA("BasePart")) and (v.Name == "Bar")) then
- table.insert(_items,v)
- end
- end
- end
- function main()
- local d = door
- door = 0
- script.Parent.Button.BrickColor = BrickColor.new("White")
- for i = 0,5,0.05 do
- for _,v in pairs(_items) do
- v.CFrame = v.CFrame * CFrame.new(0,0,(-0.002*(-d)))
- end
- wait()
- end
- if (d == (-1)) then
- script.Parent.Button.BrickColor = BrickColor.new("White")
- script.Parent.Button.Decal.Texture="http://www.roblox.com/asset/?id=11344402"
- elseif (d == 1) then
- script.Parent.Button.BrickColor = BrickColor.new("White")
- script.Parent.Button.Decal.Texture="http://www.roblox.com/asset/?id=7186733"
- end
- door = d
- end
- script.Parent.Button.Click.MouseClick:connect(function()
- if (door == 0) then return end
- door = (door*(-1))
- main()
- end)
- getItems()
- end))
- Part66.Parent = Model36
- Part66.BrickColor = BrickColor.new("Reddish brown")
- Part66.Anchored = true
- Part66.FormFactor = Enum.FormFactor.Custom
- Part66.Size = Vector3.new(9, 0.200000003, 1)
- Part66.CFrame = CFrame.new(-7.6000061, 20.9004288, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part66.BottomSurface = Enum.SurfaceType.Smooth
- Part66.TopSurface = Enum.SurfaceType.Smooth
- Part66.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part66.Position = Vector3.new(-7.6000061, 20.9004288, -9.5)
- Part66.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh67.Parent = Part66
- BlockMesh67.Scale = Vector3.new(1, 1, 1.00999999)
- BlockMesh67.Scale = Vector3.new(1, 1, 1.00999999)
- Part68.Parent = Model36
- Part68.BrickColor = BrickColor.new("Reddish brown")
- Part68.Anchored = true
- Part68.FormFactor = Enum.FormFactor.Symmetric
- Part68.Size = Vector3.new(1, 10, 1)
- Part68.CFrame = CFrame.new(-2.69999599, 16.0000744, -9.5, 1, -7.4586417e-09, -8.56816769e-08, 7.4586417e-09, 1, -2.85891255e-10, 8.56816769e-08, 2.85890617e-10, 1)
- Part68.BottomSurface = Enum.SurfaceType.Smooth
- Part68.TopSurface = Enum.SurfaceType.Smooth
- Part68.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part68.Position = Vector3.new(-2.69999599, 16.0000744, -9.5)
- Part68.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh69.Parent = Part68
- BlockMesh69.Scale = Vector3.new(1, 1, 1.00999999)
- BlockMesh69.Scale = Vector3.new(1, 1, 1.00999999)
- Part70.Parent = Model36
- Part70.BrickColor = BrickColor.new("Reddish brown")
- Part70.Anchored = true
- Part70.FormFactor = Enum.FormFactor.Symmetric
- Part70.Size = Vector3.new(1, 10, 1)
- Part70.CFrame = CFrame.new(-2.5, 16.0000744, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part70.BottomSurface = Enum.SurfaceType.Smooth
- Part70.TopSurface = Enum.SurfaceType.Smooth
- Part70.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part70.Position = Vector3.new(-2.5, 16.0000744, -9.5)
- Part70.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh71.Parent = Part70
- BlockMesh71.Scale = Vector3.new(1, 1, 1.00999999)
- BlockMesh71.Scale = Vector3.new(1, 1, 1.00999999)
- Part72.Name = "Snow"
- Part72.Parent = Model6
- Part72.BrickColor = BrickColor.new("Institutional white")
- Part72.Rotation = Vector3.new(0, 90, 0)
- Part72.Anchored = true
- Part72.FormFactor = Enum.FormFactor.Symmetric
- Part72.Size = Vector3.new(20, 1, 19)
- Part72.CFrame = CFrame.new(-11.5, 22.5001411, 0, -0, 0, 1, -0, 1, 0, -1, 0, 0)
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part72.Position = Vector3.new(-11.5, 22.5001411, 0)
- Part72.Orientation = Vector3.new(0, 90, 0)
- Part72.Color = Color3.new(0.972549, 0.972549, 0.972549)
- BlockMesh73.Parent = Part72
- Part74.Parent = Model3
- Part74.Anchored = true
- Part74.FormFactor = Enum.FormFactor.Symmetric
- Part74.Size = Vector3.new(2, 2, 1)
- Part74.CFrame = CFrame.new(-15.5, 15.5001221, -9.3999939, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part74.BottomSurface = Enum.SurfaceType.Smooth
- Part74.TopSurface = Enum.SurfaceType.Smooth
- Part74.Position = Vector3.new(-15.5, 15.5001221, -9.3999939)
- BlockMesh75.Parent = Part74
- BlockMesh75.Scale = Vector3.new(0.899999976, 0.899999976, 0.850000024)
- BlockMesh75.Scale = Vector3.new(0.899999976, 0.899999976, 0.850000024)
- Part76.Parent = Model0
- Part76.BrickColor = BrickColor.new("Reddish brown")
- Part76.Rotation = Vector3.new(-180, -90, 0)
- Part76.Anchored = true
- Part76.FormFactor = Enum.FormFactor.Symmetric
- Part76.Size = Vector3.new(36, 9, 45)
- Part76.CFrame = CFrame.new(-17.5, 4.50010204, 3, 1.78813934e-07, 1.03583941e-09, -1, 9.60687618e-09, -1, 8.8817842e-16, -1, -2.48071714e-08, -1.78813934e-07)
- Part76.BottomSurface = Enum.SurfaceType.Smooth
- Part76.TopSurface = Enum.SurfaceType.Smooth
- Part76.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part76.Position = Vector3.new(-17.5, 4.50010204, 3)
- Part76.Orientation = Vector3.new(0, -90, 180)
- Part76.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh77.Parent = Part76
- Part78.Parent = Model0
- Part78.BrickColor = BrickColor.new("Institutional white")
- Part78.Rotation = Vector3.new(180, -90, 0)
- Part78.Anchored = true
- Part78.FormFactor = Enum.FormFactor.Symmetric
- Part78.Size = Vector3.new(28, 1, 14)
- Part78.CFrame = CFrame.new(-47, 6.50010014, -1, -0, -0, -1, -0, -1, -0, -1, -0, -0)
- Part78.BottomSurface = Enum.SurfaceType.Smooth
- Part78.TopSurface = Enum.SurfaceType.Smooth
- Part78.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part78.Position = Vector3.new(-47, 6.50010014, -1)
- Part78.Orientation = Vector3.new(0, -90, -180)
- Part78.Color = Color3.new(0.972549, 0.972549, 0.972549)
- BlockMesh79.Parent = Part78
- Part80.Parent = Model0
- Part80.BrickColor = BrickColor.new("Reddish brown")
- Part80.Rotation = Vector3.new(-180, -90, 0)
- Part80.Anchored = true
- Part80.FormFactor = Enum.FormFactor.Symmetric
- Part80.Size = Vector3.new(28, 6, 14)
- Part80.CFrame = CFrame.new(-47, 3.00011396, -1, 0, 0, -1, 0, -1, 0, -1, 0, 0)
- Part80.BottomSurface = Enum.SurfaceType.Smooth
- Part80.TopSurface = Enum.SurfaceType.Smooth
- Part80.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part80.Position = Vector3.new(-47, 3.00011396, -1)
- Part80.Orientation = Vector3.new(0, -90, 180)
- Part80.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh81.Parent = Part80
- Model82.Name = "Doors"
- Model82.Parent = Model0
- Part83.Name = "Door1"
- Part83.Parent = Model82
- Part83.BrickColor = BrickColor.new("Reddish brown")
- Part83.Rotation = Vector3.new(-180, 0, 180)
- Part83.Anchored = true
- Part83.CanCollide = false
- Part83.FormFactor = Enum.FormFactor.Symmetric
- Part83.Size = Vector3.new(19, 1, 1)
- Part83.CFrame = CFrame.new(-11.4749136, 10.6001921, -10.5000162, -1, -1.50995803e-07, -1.1920929e-07, -1.50995817e-07, 1, 1.50995803e-07, 1.19209268e-07, 1.50995817e-07, -1)
- Part83.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part83.Position = Vector3.new(-11.4749136, 10.6001921, -10.5000162)
- Part83.Orientation = Vector3.new(0, -180, 0)
- Part83.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh84.Parent = Part83
- BlockMesh84.Offset = Vector3.new(0, 5.4000001, 0)
- BlockMesh84.Scale = Vector3.new(1, 12, 1)
- BlockMesh84.Scale = Vector3.new(1, 12, 1)
- Part85.Name = "Button"
- Part85.Parent = Model82
- Part85.BrickColor = BrickColor.new("Black")
- Part85.Transparency = 1
- Part85.Anchored = true
- Part85.CanCollide = false
- Part85.Size = Vector3.new(19, 1.20000005, 5)
- Part85.CFrame = CFrame.new(-11.5, 9.6000576, -12.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part85.TopSurface = Enum.SurfaceType.Smooth
- Part85.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part85.Position = Vector3.new(-11.5, 9.6000576, -12.5)
- Part85.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Script86.Parent = Part85
- table.insert(cors,sandbox(Script86,function()
- print("One Way Door Script Loaded")
- Button = script.Parent
- Door1 = script.Parent.Parent.Door1
- Door2 = script.Parent.Parent.Door2
- function onTouched(hit)
- print("Door Hit")
- script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0, -0.4, 1)
- Door1.Transparency = 0
- Door2.Transparency = 0
- wait(0.1)
- Door1.Transparency = 0.1
- Door2.Transparency = 0.1
- wait(0.1)
- Door1.Transparency = 0.2
- Door2.Transparency = 0.2
- wait(0.1)
- Door1.Transparency = 0.3
- Door2.Transparency = 0.3
- wait(0.1)
- Door1.Transparency = 0.4
- Door2.Transparency = 0.4
- wait(0.1)
- Door1.Transparency = 0.5
- Door2.Transparency = 0.5
- wait(0.1)
- Door1.Transparency = 0.6
- Door2.Transparency = 0.6
- wait(0.1)
- Door1.Transparency = 0.7
- Door2.Transparency = 0.7
- wait(0.1)
- Door1.Transparency = 0.8
- Door2.Transparency = 0.8
- wait(0.1)
- Door1.Transparency = 0.9
- Door2.Transparency = 0.9
- wait(0.1)
- Door1.Transparency = 1
- Door2.Transparency = 1
- wait(5.0)
- Door1.Transparency = 0
- Door2.Transparency = 0
- script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0, 0.4, -1)
- end
- script.Parent.Touched:connect(onTouched)
- end))
- VelocityMotor87.Name = "4D Being"
- VelocityMotor87.Parent = Model82
- Part88.Name = "Door2"
- Part88.Parent = Model82
- Part88.BrickColor = BrickColor.new("Institutional white")
- Part88.Rotation = Vector3.new(-180, 0, 180)
- Part88.Anchored = true
- Part88.CanCollide = false
- Part88.FormFactor = Enum.FormFactor.Symmetric
- Part88.Size = Vector3.new(19, 1, 1)
- Part88.CFrame = CFrame.new(-11.5497437, 22.5002098, -10.5, -1, -1.50995803e-07, -1.1920929e-07, -1.50995817e-07, 1, 1.50995803e-07, 1.19209268e-07, 1.50995817e-07, -1)
- Part88.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part88.Position = Vector3.new(-11.5497437, 22.5002098, -10.5)
- Part88.Orientation = Vector3.new(0, -180, 0)
- Part88.Color = Color3.new(0.972549, 0.972549, 0.972549)
- BlockMesh89.Parent = Part88
- Part90.Parent = Model0
- Part90.BrickColor = BrickColor.new("Reddish brown")
- Part90.Rotation = Vector3.new(0, 0, -180)
- Part90.Anchored = true
- Part90.FormFactor = Enum.FormFactor.Symmetric
- Part90.Size = Vector3.new(41, 5, 4)
- Part90.CFrame = CFrame.new(-26.5, 2.50008607, -17.0000381, -1, 2.11794054e-06, -7.40334606e-13, -2.116122e-06, -0.99999994, 1.26295899e-05, 2.98026883e-08, 1.26293935e-05, 0.999999881)
- Part90.BottomSurface = Enum.SurfaceType.Smooth
- Part90.TopSurface = Enum.SurfaceType.Smooth
- Part90.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part90.Position = Vector3.new(-26.5, 2.50008607, -17.0000381)
- Part90.Orientation = Vector3.new(0, 0, -180)
- Part90.Color = Color3.new(0.411765, 0.25098, 0.156863)
- BlockMesh91.Parent = Part90
- Part92.Parent = Model0
- Part92.BrickColor = BrickColor.new("Institutional white")
- Part92.Rotation = Vector3.new(-180, -90, 0)
- Part92.Anchored = true
- Part92.FormFactor = Enum.FormFactor.Symmetric
- Part92.Size = Vector3.new(4, 1, 41)
- Part92.CFrame = CFrame.new(-26.5, 5.50010014, -17.0000839, 0, 0, -1, 0, -1, 0, -1, 0, 0)
- Part92.BottomSurface = Enum.SurfaceType.Smooth
- Part92.TopSurface = Enum.SurfaceType.Smooth
- Part92.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part92.Position = Vector3.new(-26.5, 5.50010014, -17.0000839)
- Part92.Orientation = Vector3.new(0, -90, 180)
- Part92.Color = Color3.new(0.972549, 0.972549, 0.972549)
- BlockMesh93.Parent = Part92
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement