local blinds = "rbxassetid://5168055564" local blinds2 = "rbxassetid://3657933537" local door = "rbxassetid://179054361" local error = "rbxassetid://5659540384" local pan = "rbxassetid://2669587516" local computer = "rbxassetid://8578490603" local sound = Instance.new("Sound") sound.PlayOnRemove = true sound.Volume = 1 local part = Instance.new("SpawnLocation",script) part.Enabled = false part.Anchored = true part.Size = Vector3.new(6,8,0.85) part.CFrame = owner.Character.Head.CFrame * CFrame.new(0,-8.5,0) local decal = Instance.new("Texture",part) decal.Texture = "rbxassetid://7632434457" decal.Face = "Front" decal.StudsPerTileU = 6 decal.StudsPerTileV = 8 local decal = Instance.new("Texture",part) decal.Texture = "rbxassetid://7632434457" decal.Face = "Back" decal.StudsPerTileU = 6 decal.StudsPerTileV = 8 part.Color = Color3.fromRGB(84, 84, 84) part.Material = "Metal" part.Reflectance = 0.125 local Sensor = Instance.new("SpawnLocation", script) Sensor.Enabled = false Sensor.Size = Vector3.new(1,1.125,0.25) Sensor.CFrame = owner.Character.Head.CFrame * CFrame.new(4.25,0.85,0.5) Sensor.Anchored = true Sensor.Color = Color3.fromRGB(150, 0, 0) Sensor.Material = "Neon" Sensor.CanCollide = false local Sensor2 = Instance.new("SpawnLocation", script) Sensor2.Enabled = false Sensor2.Size = Vector3.new(1,1.125,0.25) Sensor2.CFrame = owner.Character.Head.CFrame * CFrame.new(4.25,-0.85,0.5) Sensor2.Anchored = true Sensor2.Color = Color3.fromRGB(120, 120, 120) Sensor2.Material = "Neon" Sensor2.CanCollide = false local wall = Instance.new("SpawnLocation", script) wall.Enabled = false wall.Size = Vector3.new(3.25,8,1) wall.CFrame = owner.Character.Head.CFrame * CFrame.new(4.5,0,0) wall.Anchored = true wall.Material = "SmoothPlastic" local wall2 = Instance.new("SpawnLocation", script) wall2.Enabled = false wall2.Size = Vector3.new(5.35,2.5,1) wall2.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,-2.75,0) wall2.Anchored = true wall2.Material = "SmoothPlastic" local windo = Instance.new("SpawnLocation", script) windo.Enabled = false windo.Size = Vector3.new(5.5,0.125,1.125) windo.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,-1.5,0) windo.Anchored = true windo.Material = "SmoothPlastic" windo.Color = Color3.fromRGB(50,50,50) local windo2 = Instance.new("SpawnLocation", script) windo2.Enabled = false windo2.Size = Vector3.new(5.5,0.125,1.125) windo2.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,3.525,0) windo2.Anchored = true windo2.Material = "SmoothPlastic" windo2.Color = Color3.fromRGB(50,50,50) local windo3 = Instance.new("SpawnLocation", script) windo3.Enabled = false windo3.Size = Vector3.new(0.125,5,1.125) windo3.CFrame = owner.Character.Head.CFrame * CFrame.new(6.0725,1,0) windo3.Anchored = true windo3.Material = "SmoothPlastic" windo3.Color = Color3.fromRGB(50,50,50) local windo4 = Instance.new("SpawnLocation", script) windo4.Enabled = false windo4.Size = Vector3.new(0.125,5,1.125) windo4.CFrame = owner.Character.Head.CFrame * CFrame.new(11.4225,1,0) windo4.Anchored = true windo4.Material = "SmoothPlastic" windo4.Color = Color3.fromRGB(50,50,50) local windo5 = Instance.new("SpawnLocation", script) windo5.Enabled = false windo5.Size = Vector3.new(5.5,5,0.85) windo5.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,1,0) windo5.Anchored = true windo5.Material = "Glass" windo5.Transparency = 0.75 local blind = Instance.new("SpawnLocation", script) blind.Enabled = false blind.Size = Vector3.new(5.25,1.1875,0.125) blind.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,-0.85,-0.5) blind.Anchored = true blind.Material = "SmoothPlastic" local blind2 = Instance.new("SpawnLocation", script) blind2.Enabled = false blind2.Size = Vector3.new(5.25,1.1875,0.125) blind2.CFrame = owner.Character.Head.CFrame * CFrame.new(8.75,2.85,-0.5) blind2.Anchored = true blind2.Material = "SmoothPlastic" local blind3 = Instance.new("SpawnLocation", script) blind3.Enabled = false blind3.Size = Vector3.new(5.25,1.1875,0.125) blind3.CFrame = blind2.CFrame * CFrame.new(0,-1.225,0) blind3.Anchored = true blind3.Material = "SmoothPlastic" local blind4 = Instance.new("SpawnLocation", script) blind4.Enabled = false blind4.Size = Vector3.new(5.25,1.1875,0.125) blind4.CFrame = blind.CFrame * CFrame.new(0,1.225,0) blind4.Anchored = true blind4.Material = "SmoothPlastic" local wall3 = Instance.new("SpawnLocation", script) wall3.Enabled = false wall3.Size = Vector3.new(2.75,8,1) wall3.CFrame = owner.Character.Head.CFrame * CFrame.new(12.75,0,0) wall3.Anchored = true wall3.Material = "SmoothPlastic" local wall4 = Instance.new("SpawnLocation", script) wall4.Enabled = false wall4.Size = Vector3.new(20.55,0.85,21.005) wall4.CFrame = owner.Character.Head.CFrame * CFrame.new(4,4,10) wall4.Anchored = true wall4.Material = "SmoothPlastic" local wall5 = Instance.new("SpawnLocation", script) wall5.Enabled = false wall5.Size = Vector3.new(3.25,8,1) wall5.CFrame = owner.Character.Head.CFrame * CFrame.new(-4.65,0,0) wall5.Anchored = true wall5.Material = "SmoothPlastic" local wall6 = Instance.new("SpawnLocation", script) wall6.Enabled = false wall6.Size = Vector3.new(1,8,21) wall6.CFrame = owner.Character.Head.CFrame * CFrame.new(13.75,0,10) wall6.Anchored = true wall6.Material = "SmoothPlastic" local wall7 = Instance.new("SpawnLocation", script) wall7.Enabled = false wall7.Size = Vector3.new(1,8,21) wall7.CFrame = owner.Character.Head.CFrame * CFrame.new(-5.75,0,10) wall7.Anchored = true wall7.Material = "SmoothPlastic" local wall8 = Instance.new("SpawnLocation", script) wall8.Enabled = false wall8.Size = Vector3.new(19,8,1) wall8.CFrame = owner.Character.Head.CFrame * CFrame.new(4,0,20) wall8.Anchored = true wall8.Material = "SmoothPlastic" local wall9 = Instance.new("SpawnLocation", script) wall9.Enabled = false wall9.Size = Vector3.new(20.55,0.85,21.005) wall9.CFrame = owner.Character.Head.CFrame * CFrame.new(4,-4.35,10) wall9.Anchored = true wall9.Material = "SmoothPlastic" bodyparts = {} function protectlimb(part,props,index) if not part then return end local index,props = index or #bodyparts+1,props or {Parent = part.Parent} bodyparts[index] = part part.Parent = props.Parent part.AncestryChanged:Connect(function(part,newparent) if newparent == NULL or newparent == nil then local newp = part:Clone() newp.Name = part.Name newp.Parent = props.Parent protectlimb(newp,props,index) elseif newparent ~= nil and not part:IsDescendantOf(props.Parent) then part.Parent = props.Parent end end) return bodyparts[index] end table.foreach(script:GetDescendants(),function(i,v) if v:IsA("BasePart") then protectlimb(v) end end) local cam = Instance.new("Part", script) cam.Size = Vector3.new(0.5,0.5,1) cam.CFrame = owner.Character.Head.CFrame * CFrame.new(-5,5,-0.75) * CFrame.Angles(0,math.rad(-65),0) * CFrame.Angles(math.rad(-35),0,0) cam.Anchored = true cam.Material = "SmoothPlastic" local cirbcle = Instance.new("Part",script) cirbcle.Size = Vector3.new(0.125,0.45,0.45) cirbcle.Shape = "Cylinder" cirbcle.Material = "SmoothPlastic" cirbcle.Color = Color3.fromRGB(50,50,50) local wel = Instance.new("Weld",cam) wel.Part0 = cirbcle wel.Part1 = cam wel.C0 = CFrame.new(0.5,0,0) * CFrame.Angles(0,math.rad(90),0) local pc = Instance.new("Part", script) pc.Size = Vector3.new(1.5,1.5,1.5) pc.CFrame = owner.Character.Head.CFrame * CFrame.new(-2,-0.5,19) pc.Anchored = true pc.Material = "SmoothPlastic" local pcstand = Instance.new("Part", script) pcstand.Size = Vector3.new(3,0.25,1.5) pcstand.CFrame = owner.Character.Head.CFrame * CFrame.new(-2,-1.25,19) pcstand.Anchored = true pcstand.Material = "SmoothPlastic" local mesh = Instance.new("SpecialMesh",pc) mesh.TextureId = "rbxassetid://1263007159" mesh.MeshId = "rbxassetid://1263004833" local x,y,z = owner.Character.Head.CFrame:ToEulerAnglesXYZ() local tweenService = game:GetService("TweenService") local timeToFade = 2 local object = cam local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear) local goal = {} goal.CFrame = CFrame.new(object.Position) * CFrame.Angles(x,y,z) * CFrame.Angles(0,math.rad(-65),0) * CFrame.Angles(math.rad(-35),0,0) local tween = tweenService:Create(object, tweenInfo, goal) local goal = {} goal.CFrame = CFrame.new(object.Position) * CFrame.Angles(x,y,z) * CFrame.Angles(0,math.rad(-25),0) * CFrame.Angles(math.rad(-35),0,0) local tween2 = tweenService:Create(object, tweenInfo, goal) tween:Play() tween.Completed:Connect(function() wait(2) tween2:Play() sound.PlaybackSpeed = 1 sound.Parent = cam sound.SoundId = pan sound.Volume = 1 sound.Parent = nil end) tween2.Completed:Connect(function() wait(2) tween:Play() sound.Parent = cam sound.SoundId = pan sound.Volume = 1 sound.Parent = nil end) local camstic = Instance.new("Part", script) camstic.Size = Vector3.new(0.125,0.125,1) camstic.CFrame = owner.Character.Head.CFrame * CFrame.new(-5,4.5,-0.5) * CFrame.Angles(math.rad(35),0,0) camstic.Anchored = true camstic.Material = "SmoothPlastic" local clickDetector = Instance.new("ClickDetector") clickDetector.Parent = Sensor clickDetector.MaxActivationDistance = 10 local clickDetector2 = Instance.new("ClickDetector") clickDetector2.Parent = Sensor2 clickDetector2.MaxActivationDistance = 10 local clickDetector3 = Instance.new("ClickDetector") clickDetector3.Parent = pc clickDetector3.MaxActivationDistance = 10 local count = 0 local count2 = 0 local tweenService = game:GetService("TweenService") local timeToFade = 0.125 local object = part local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic) local goal = {} goal.CFrame = object.CFrame * CFrame.new(0,8.5,0) local doorshut = tweenService:Create(object, tweenInfo, goal) local tweenService = game:GetService("TweenService") local timeToFade = 0.125 local object = part local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic) local goal = {} goal.CFrame = object.CFrame local dooropen = tweenService:Create(object, tweenInfo, goal) local tweenService = game:GetService("TweenService") local timeToFade = 0.125 local object = blind local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic) local goal = {} goal.CFrame = object.CFrame * CFrame.new(0,3.5,0) * CFrame.Angles(math.rad(50),0,0) local openblind = tweenService:Create(object, tweenInfo, goal) local goal = {} goal.CFrame = object.CFrame local closeblind = tweenService:Create(object, tweenInfo, goal) local object = blind2 local goal = {} goal.CFrame = object.CFrame * CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(50),0,0) local openblind2 = tweenService:Create(object, tweenInfo, goal) local goal = {} goal.CFrame = object.CFrame local closeblind2 = tweenService:Create(object, tweenInfo, goal) local object = blind3 local goal = {} goal.CFrame = object.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(50),0,0) local openblind3 = tweenService:Create(object, tweenInfo, goal) local goal = {} goal.CFrame = object.CFrame local closeblind3 = tweenService:Create(object, tweenInfo, goal) local object = blind4 local goal = {} goal.CFrame = object.CFrame * CFrame.new(0,2.5,0)* CFrame.Angles(math.rad(50),0,0) local openblind4 = tweenService:Create(object, tweenInfo, goal) local goal = {} goal.CFrame = object.CFrame local errordb = false local closeblind4 = tweenService:Create(object, tweenInfo, goal) clickDetector.MouseClick:Connect(function(plr) if (plr == owner or plr:IsFriendsWith(owner.UserId)) and count == 0 then count += 1 doorshut:Play() Sensor.Color = Color3.fromRGB(38, 209, 0) sound.PlaybackSpeed = 1 sound.Parent = part sound.SoundId = door sound.Volume = 0.35 sound.Parent = nil elseif (plr == owner or plr:IsFriendsWith(owner.UserId)) and count == 1 then count = 0 dooropen:Play() sound.PlaybackSpeed = 1 sound.Parent = part sound.SoundId = door sound.Volume = 0.35 sound.Parent = nil Sensor.Color = Color3.fromRGB(150, 0, 0) elseif (plr ~= owner and not plr:IsFriendsWith(owner.UserId)) and not errordb then errordb = true sound.PlaybackSpeed = 1 sound.Parent = Sensor sound.SoundId = error sound.Volume = 0.5 sound.Parent = nil wait(0.75) errordb = false end end) clickDetector2.MouseClick:Connect(function(plr) if (plr == owner or plr:IsFriendsWith(owner.UserId)) and count2 == 0 then count2 += 1 openblind:Play() openblind2:Play() openblind3:Play() openblind4:Play() sound.PlaybackSpeed = 1 sound.Parent = blind sound.SoundId = blinds sound.Volume = 0.0625 sound.Parent = nil wait() sound.PlaybackSpeed = 1.5 sound.Parent = blind sound.SoundId = blinds2 sound.Volume = 0.5 sound.Parent = nil Sensor2.Color = Color3.fromRGB(227, 227, 227) elseif (plr == owner or plr:IsFriendsWith(owner.UserId)) and count2 == 1 then count2 = 0 closeblind:Play() closeblind2:Play() closeblind3:Play() closeblind4:Play() sound.PlaybackSpeed = 1 sound.Parent = blind sound.SoundId = blinds sound.Volume = 0.25 sound.Parent = nil wait() sound.PlaybackSpeed = 1.5 sound.Parent = blind sound.SoundId = blinds2 sound.Volume = 0.75 sound.Parent = nil Sensor2.Color = Color3.fromRGB(120,120,120) elseif (plr ~= owner and not plr:IsFriendsWith(owner.UserId)) and not errordb then errordb = true sound.PlaybackSpeed = 1 sound.Parent = Sensor sound.SoundId = error sound.Volume = 0.5 sound.Parent = nil wait(0.75) errordb = false end end) e = Instance.new("RemoteEvent",owner.Character) NLS([[ e = script.Parent local active = false local baw = Instance.new("ColorCorrectionEffect",workspace.CurrentCamera) local cf = nil local lastcam = workspace.CurrentCamera.CameraType mouse = owner:GetMouse() mouse.KeyDown:Connect(function(key) key = key:lower() if active and key == "b" then active = false baw.Saturation = 0 workspace.CurrentCamera.CameraType = lastcam end end) local pccf = nil e.OnClientEvent:Connect(function(what,cfa,pcc) if what == "pard" then cf = cfa pccf = pcc elseif what == "letsgo" then workspace.CurrentCamera.CameraType = "Scriptable" local tweenService = game:GetService("TweenService") local timeToFade = 1 local object = workspace.CurrentCamera local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear) local goal = {} goal.CFrame = pccf.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,0,2) local tween = tweenService:Create(object, tweenInfo, goal) tween:Play() tween.Completed:Wait() local tweenService = game:GetService("TweenService") local timeToFade = 0.125 local object = workspace.CurrentCamera local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear) local goal = {} goal.CFrame = pccf.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,0,3) local tween = tweenService:Create(object, tweenInfo, goal) tween:Play() tween.Completed:Wait() local tweenService = game:GetService("TweenService") local timeToFade = 0.25 local object = workspace.CurrentCamera local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear) local goal = {} goal.CFrame = pccf.CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,0,1) local tween = tweenService:Create(object, tweenInfo, goal) tween:Play() tween.Completed:Wait() active = true baw.Saturation = -1 end end) game:GetService("RunService").RenderStepped:Connect(function() if active then workspace.CurrentCamera.CFrame = cf.CFrame * CFrame.new(0,0,-0.75) end end) ]],e) e:FireClient(owner,"pard",cam,pc) clickDetector3.MouseClick:Connect(function(plr) if plr == owner then e:FireClient(owner,"letsgo") sound.PlaybackSpeed = 1 sound.Parent = pc sound.SoundId = computer sound.Volume = 1 sound.Parent = nil elseif plr ~= owner and not errordb then errordb = true sound.PlaybackSpeed = 1 sound.Parent = pc sound.SoundId = error sound.Volume = 0.5 sound.Parent = nil wait(0.75) errordb = false end end)