Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lighting = game:GetService("Lighting")
- lighting.FogEnd = 15
- lighting.FogColor = Color3.new(0, 0, 0)
- lighting.TimeOfDay = 0
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
- if loaded then
- game.Players.LocalPlayer:Kick("Restart")
- local TeleportService = game:GetService("TeleportService")
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local Rejoin = coroutine.create(function()
- local Success, ErrorMessage = pcall(function()
- TeleportService:Teleport(game.PlaceId, LocalPlayer)
- end)
- if ErrorMessage and not Success then
- warn(ErrorMessage)
- end
- end)
- coroutine.resume(Rejoin)
- end
- pcall(function()
- getgenv().loaded = true
- local L = game:GetService("Lighting") L.ClockTime = 0
- local Sky = Instance.new("Sky")
- Sky.SkyboxUp = "http://www.roblox.com/asset/?id=196263782"
- Sky.SkyboxLf = "http://www.roblox.com/asset/?id=196263721"
- Sky.SkyboxBk = "http://www.roblox.com/asset/?id=196263721"
- Sky.SkyboxFt = "http://www.roblox.com/asset/?id=196263721"
- Sky.CelestialBodiesShown = false
- Sky.SkyboxDn = "http://www.roblox.com/asset/?id=196263643"
- Sky.SkyboxRt = "http://www.roblox.com/asset/?id=196263721"
- Sky.Parent = game.Lighting
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1000.86, 5001, -2920.906)
- local Sound = Instance.new("Sound")
- local Id = "7524653769"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = true
- Sound.Volume = 1
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Humanoid = Character.Humanoid
- Humanoid.MaxHealth = 100
- Humanoid.HealthChanged:connect(function()
- if Humanoid.Health < 5 then
- Humanoid.Health = Humanoid.MaxHealth
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1000.86, 5001, -2920.906)
- localaction = math.random(1,5)
- if localaction == 1 then
- for i,v in pairs(game.Players:GetPlayers()) do
- spawn(function()
- local newgui = Instance.new("ScreenGui",v.PlayerGui)
- newgui.Name = "Screamer"
- local newimage = Instance.new("ImageLabel",newgui)
- newimage.Image = "rbxassetid://6679835009"
- newimage.Size = UDim2.new(1,0,1,0)
- local Sound = Instance.new("Sound")
- local Id = "11984351"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = false
- Sound.Volume = 1
- wait(0.2)
- newimage:Destroy()
- end)
- end
- end
- if localaction == 2 then
- for i,v in pairs(game.Players:GetPlayers()) do
- spawn(function()
- local newgui = Instance.new("ScreenGui",v.PlayerGui)
- newgui.Name = "Screamer"
- local newimage = Instance.new("ImageLabel",newgui)
- newimage.Image = "rbxassetid://1119705746"
- newimage.Size = UDim2.new(1,0,1,0)
- local Sound = Instance.new("Sound")
- local Id = "11984351"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = false
- Sound.Volume = 1
- wait(0.2)
- newimage:Destroy()
- end)
- end
- end
- if localaction == 3 then
- for i,v in pairs(game.Players:GetPlayers()) do
- spawn(function()
- local newgui = Instance.new("ScreenGui",v.PlayerGui)
- newgui.Name = "Screamer"
- local newimage = Instance.new("ImageLabel",newgui)
- newimage.Image = "rbxassetid://2293755576"
- newimage.Size = UDim2.new(1,0,1,0)
- local Sound = Instance.new("Sound")
- local Id = "11984351"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = false
- Sound.Volume = 1
- wait(0.2)
- newimage:Destroy()
- end)
- end
- end
- if localaction == 4 then
- for i,v in pairs(game.Players:GetPlayers()) do
- spawn(function()
- local newgui = Instance.new("ScreenGui",v.PlayerGui)
- newgui.Name = "Screamer"
- local newimage = Instance.new("ImageLabel",newgui)
- newimage.Image = "rbxassetid://100876676"
- newimage.Size = UDim2.new(1,0,1,0)
- local Sound = Instance.new("Sound")
- local Id = "11984351"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = false
- Sound.Volume = 1
- wait(0.2)
- newimage:Destroy()
- end)
- end
- end
- if localaction == 5 then
- for i,v in pairs(game.Players:GetPlayers()) do
- spawn(function()
- local newgui = Instance.new("ScreenGui",v.PlayerGui)
- newgui.Name = "Screamer"
- local newimage = Instance.new("ImageLabel",newgui)
- newimage.Image = "rbxassetid://11518873999"
- newimage.Size = UDim2.new(1,0,1,0)
- local Sound = Instance.new("Sound")
- local Id = "11984351"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = false
- Sound.Volume = 1
- wait(0.2)
- newimage:Destroy()
- end)
- end
- end
- end
- end)
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "[ERROR_CODE]:Survive and Escape the Maze.";
- Color = Color3.fromRGB(255, 255, 255);
- })
- for i = 1,1 do
- local floor = Instance.new("Part")
- floor.Parent = workspace
- floor.Anchored = true
- floor.Size = Vector3.new(2048, 2, 2048)
- floor.CanCollide = true
- floor.Position = Vector3.new(-18, 5000, -1902.011)
- floor.Material = "Marble"
- end
- for i = 1,1 do
- local ceiling = Instance.new("Part")
- ceiling.Parent = workspace
- ceiling.Anchored = true
- ceiling.Size = Vector3.new(2048, 2, 2048)
- ceiling.CanCollide = true
- ceiling.Position = Vector3.new(-18, 5016, -1902.011)
- ceiling.Material = "Slate"
- end
- for i = 1,1 do
- local Wall1 = Instance.new("Part")
- Wall1.Parent = workspace
- Wall1.Anchored = true
- Wall1.Size = Vector3.new(1, 15, 2048)
- Wall1.CanCollide = true
- Wall1.Position = Vector3.new(1005.883, 5008, -1901.912)
- Wall1.Material = "Brick"
- end
- for i = 1,1 do
- local Wall2 = Instance.new("Part")
- Wall2.Parent = workspace
- Wall2.Anchored = true
- Wall2.Size = Vector3.new(1, 15, 2048)
- Wall2.CanCollide = true
- Wall2.Position = Vector3.new(-1041.5, 5008, -1901.912)
- Wall2.Material = "Brick"
- end
- for i = 1,1 do
- local Wall3 = Instance.new("Part")
- Wall3.Parent = workspace
- Wall3.Anchored = true
- Wall3.Size = Vector3.new(2048, 15, 1)
- Wall3.CanCollide = true
- Wall3.Position = Vector3.new(-17.658, 5008, -2925.461)
- Wall3.Material = "Brick"
- end
- for i = 1,1 do
- local Wall4 = Instance.new("Part")
- Wall4.Parent = workspace
- Wall4.Anchored = true
- Wall4.Size = Vector3.new(2048, 15, 1)
- Wall4.CanCollide = true
- Wall4.Position = Vector3.new(-17.658, 5008, -878.011)
- Wall4.Material = "Brick"
- end
- for i = 1,1 do
- local MazeWall = Instance.new("Part")
- MazeWall.Parent = workspace
- MazeWall.Anchored = true
- MazeWall.Size = Vector3.new(43,15,1)
- MazeWall.CanCollide = true
- MazeWall.Position = Vector3.new(984.5, 5008, -2908.508 )
- MazeWall.Material = "Brick"
- end
- for i = 1,1 do
- local MazeWall = Instance.new("Part")
- MazeWall.Parent = workspace
- MazeWall.Anchored = true
- MazeWall.Size = Vector3.new(1,15,63)
- MazeWall.CanCollide = true
- MazeWall.Position = Vector3.new(963.737, 5008, -2876.91)
- MazeWall.Material = "Brick"
- end
- for i = 1,1 do
- local MazeWall = Instance.new("Part")
- MazeWall.Parent = workspace
- MazeWall.Anchored = true
- MazeWall.Size = Vector3.new(1,15,63)
- MazeWall.CanCollide = true
- MazeWall.Position = Vector3.new(941.737, 5008, -2876.91)
- MazeWall.Material = "Brick"
- end
- for i = 1,1 do
- local MazeWall = Instance.new("Part")
- MazeWall.Parent = workspace
- MazeWall.Anchored = true
- MazeWall.Size = Vector3.new(44,15,1)
- MazeWall.CanCollide = true
- MazeWall.Position = Vector3.new(920.5, 5008, -2908.508)
- MazeWall.Material = "Brick"
- end
- for i = 1,1 do
- local part = Instance.new("Part")
- part.Parent = workspace
- part.Anchored = true
- part.Size = Vector3.new(5,2,1)
- part.CanCollide = true
- part.Material = "Concrete"
- part.Position = Vector3.new(-1040.322, 5009, -883.831)
- part.Rotation = Vector3.new(0,-90,0)
- local parttext = Instance.new("SurfaceGui", part)
- parttext.Adornee = part
- local parttext2 = Instance.new("TextLabel", parttext)
- parttext2.Size = UDim2.new(1, 1, 1, 1)
- parttext2.TextScaled = true
- parttext2.Text = "Exit"
- parttext2.Font = "Code"
- end
- local Part = Instance.new("Part", workspace)
- Part.Size = Vector3.new(1, 11, 9)
- Part.Locked = true
- Part.Anchored = true
- Part.CFrame = CFrame.new(-1040.822, 5006, -883.831)
- Part.Material = "Corroded Metal"
- Touched = false
- Part.Touched:connect(function(player)
- if Touched == false then
- Touched = true
- if player.Parent.ClassName == "Model" then
- local Sound = Instance.new("Sound")
- local Id = "153993026"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = false
- Sound.Volume = 1
- game:FindService("RunService"):Set3dRenderingEnabled(false)
- wait(1)
- local plr = game.Players.LocalPlayer
- local gui = Instance.new("ScreenGui")
- gui.Parent = plr.PlayerGui
- gui.ResetOnSpawn = false
- local End = Instance.new("TextLabel")
- End.Parent = gui
- End.BackgroundTransparency = 1
- End.Size = UDim2.new(2, 0, 2, 0)
- End.Position = UDim2.new(-0.5, 0, 0 ,-255)
- End.TextXAlignment = Enum.TextXAlignment.Center
- End.TextScaled = true
- End.Text = "Well...This is the end..."
- End.TextColor3 = Color3.new(0, 0, 0)
- End.Font = Enum.Font.IndieFlower
- wait(4)
- End.Text = "You can run away..."
- wait(4)
- End.Text = "."
- wait(0.5)
- End.Text = ".."
- wait(0.5)
- End.Text = "..."
- wait(1)
- End.Text = ""
- game:FindService("RunService"):Set3dRenderingEnabled(true)
- wait()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(999.056, 5000.929, -2940.162)
- local camera = workspace.CurrentCamera
- local player = game.Players.LocalPlayer
- local character = player.Character
- local humanoid = character.Humanoid
- local lighting = game:GetService("Lighting")
- lighting.FogEnd = 15
- lighting.FogColor = Color3.new(0, 0, 0)
- lighting.TimeOfDay = 0
- -- camera settings
- player.CameraMaxZoomDistance = 0.5 -- force first person
- camera.FieldOfView = 100
- humanoid.CameraOffset = Vector3.new(0, 0, -1)
- -- set and keep every body part Transparency to its real transparency
- for childIndex, child in pairs(character:GetChildren()) do
- if child:IsA("BasePart") and child.Name ~= "Head" then
- child:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
- child.LocalTransparencyModifier = child.Transparency
- end)
- child.LocalTransparencyModifier = child.Transparency
- end
- end
- -- if the player steps in a vehicle
- camera:GetPropertyChangedSignal("CameraSubject"):Connect(function()
- if camera.CameraSubject:IsA("VehicleSeat") then
- camera.CameraSubject = humanoid
- end
- end)
- for i = 1,1 do
- local ExitWall1 = Instance.new("Part")
- ExitWall1.Parent = workspace
- ExitWall1.Anchored = true
- ExitWall1.Size = Vector3.new(1,15,151)
- ExitWall1.CanCollide = true
- ExitWall1.Position = Vector3.new(990.704, 5007.929, -3013.313)
- ExitWall1.Material = "Brick"
- end
- for i = 1,1 do
- local ExitWall2 = Instance.new("Part")
- ExitWall2.Parent = workspace
- ExitWall2.Anchored = true
- ExitWall2.Size = Vector3.new(1,15,151)
- ExitWall2.CanCollide = true
- ExitWall2.Position = Vector3.new(1006.704, 5007.929, -3013.313)
- ExitWall2.Material = "Brick"
- end
- for i = 1,1 do
- local ExitWall3 = Instance.new("Part")
- ExitWall3.Parent = workspace
- ExitWall3.Anchored = true
- ExitWall3.Size = Vector3.new(16, 15, 1)
- ExitWall3.CanCollide = true
- ExitWall3.Position = Vector3.new(998.277, 5007.929, -2938.156)
- ExitWall3.Material = "Brick"
- end
- for i = 1,1 do
- local ExitWall4 = Instance.new("Part")
- ExitWall4.Parent = workspace
- ExitWall4.Anchored = true
- ExitWall4.Size = Vector3.new(17, 1, 151)
- ExitWall4.CanCollide = true
- ExitWall4.Position = Vector3.new(998.776, 5015.429, -3013.551)
- ExitWall4.Material = "Brick"
- end
- for i = 1,1 do
- local ExitWall5 = Instance.new("Part")
- ExitWall5.Parent = workspace
- ExitWall5.Anchored = true
- ExitWall5.Size = Vector3.new(17,1,151)
- ExitWall5.CanCollide = true
- ExitWall5.Position = Vector3.new(998.776, 5000.429, -3013.551)
- ExitWall5.Material = "Brick"
- end
- local Part = Instance.new("Part", workspace)
- Part.Size = Vector3.new(16, 15, 1)
- Part.Locked = true
- Part.Anchored = true
- Part.CFrame = CFrame.new(998.277, 5007.929, -3089.156)
- Part.Material = "Neon"
- Touched = false
- Part.Touched:connect(function(player)
- if Touched == false then
- Touched = true
- if player.Parent.ClassName == "Model" then
- local Sound = Instance.new("Sound")
- local Id = "836142578"
- Sound.Parent = game.Workspace
- Sound.SoundId = "rbxassetid://"..Id
- Sound.Playing = true
- Sound.Looped = false
- Sound.Volume = 1
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- game:FindService("RunService"):Set3dRenderingEnabled(false)
- local plr = game.Players.LocalPlayer
- local gui = Instance.new("ScreenGui")
- gui.Parent = plr.PlayerGui
- gui.ResetOnSpawn = false
- local End = Instance.new("TextLabel")
- End.Parent = gui
- End.BackgroundTransparency = 1
- End.Size = UDim2.new(2, 0, 2, 0)
- End.Position = UDim2.new(-0.5, 0, 0 ,-255)
- End.TextXAlignment = Enum.TextXAlignment.Center
- End.TextScaled = true
- End.Text = "You think it realy end?"
- End.TextColor3 = Color3.new(0, 0, 0)
- End.Font = Enum.Font.IndieFlower
- wait(4)
- End.Text = "..."
- wait(1)
- End.Text = "FUN NEVER END!"
- wait(3)
- game.Players.LocalPlayer:Kick("chapter 3 coming soon")
- if player.Parent.Name ~= game.Players.LocalPlayer.Name then
- player.Parent.Humanoid.HipHeight = 0/0
- wait(3)
- player.Parent:Destroy()
- end
- end
- Touched = false
- end
- end)
- if player.Parent.Name ~= game.Players.LocalPlayer.Name then
- player.Parent.Humanoid.HipHeight = 0/0
- wait(3)
- player.Parent:Destroy()
- end
- end
- Touched = false
- end
- end)
- wait(2)
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "[ERROR_CODE]:Wait a sec.";
- Color = Color3.fromRGB(255, 255, 255);
- })
- wait(4)
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "[ERROR_CODE]:Where is your FlashLight?";
- Color = Color3.fromRGB(255, 255, 255);
- })
- wait(3)
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "[ERROR_CODE]:You have to walk in the dark...";
- Color = Color3.fromRGB(255, 255, 255);
- })
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement