Advertisement
ERROR_CODE

My nightmare chapter ???

Aug 2nd, 2023 (edited)
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.93 KB | None | 0 0
  1. local lighting = game:GetService("Lighting")
  2. lighting.FogEnd = 15
  3. lighting.FogColor = Color3.new(0, 0, 0)
  4. lighting.TimeOfDay = 0
  5. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  6. if loaded then
  7. game.Players.LocalPlayer:Kick("Restart")
  8. local TeleportService = game:GetService("TeleportService")
  9. local Players = game:GetService("Players")
  10. local LocalPlayer = Players.LocalPlayer
  11.  
  12. local Rejoin = coroutine.create(function()
  13.     local Success, ErrorMessage = pcall(function()
  14.         TeleportService:Teleport(game.PlaceId, LocalPlayer)
  15.     end)
  16.  
  17.     if ErrorMessage and not Success then
  18.         warn(ErrorMessage)
  19.     end
  20. end)
  21.  
  22. coroutine.resume(Rejoin)
  23. end
  24. pcall(function()
  25.     getgenv().loaded = true
  26. local L = game:GetService("Lighting") L.ClockTime = 0
  27. local Sky = Instance.new("Sky")
  28. Sky.SkyboxUp = "http://www.roblox.com/asset/?id=196263782"
  29. Sky.SkyboxLf = "http://www.roblox.com/asset/?id=196263721"
  30. Sky.SkyboxBk = "http://www.roblox.com/asset/?id=196263721"
  31. Sky.SkyboxFt = "http://www.roblox.com/asset/?id=196263721"
  32. Sky.CelestialBodiesShown = false
  33. Sky.SkyboxDn = "http://www.roblox.com/asset/?id=196263643"
  34. Sky.SkyboxRt = "http://www.roblox.com/asset/?id=196263721"
  35. Sky.Parent = game.Lighting
  36. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1000.86, 5001, -2920.906)
  37. local Sound = Instance.new("Sound")
  38. local Id = "7524653769"
  39. Sound.Parent = game.Workspace
  40. Sound.SoundId = "rbxassetid://"..Id
  41. Sound.Playing = true
  42. Sound.Looped = true
  43. Sound.Volume = 1
  44. local Player = game.Players.LocalPlayer
  45. local Character = Player.Character
  46. local Humanoid = Character.Humanoid
  47.  Humanoid.MaxHealth = 100
  48. Humanoid.HealthChanged:connect(function()
  49. if Humanoid.Health < 5 then
  50. Humanoid.Health = Humanoid.MaxHealth
  51. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1000.86, 5001, -2920.906)
  52. localaction = math.random(1,5)
  53. if localaction == 1 then
  54. for i,v in pairs(game.Players:GetPlayers()) do
  55.  
  56.                spawn(function()
  57.                        local newgui = Instance.new("ScreenGui",v.PlayerGui)
  58.                        newgui.Name = "Screamer"
  59.                        local newimage = Instance.new("ImageLabel",newgui)
  60.                        newimage.Image = "rbxassetid://6679835009"
  61.                        newimage.Size = UDim2.new(1,0,1,0)
  62. local Sound = Instance.new("Sound")
  63. local Id = "11984351"
  64. Sound.Parent = game.Workspace
  65. Sound.SoundId = "rbxassetid://"..Id
  66. Sound.Playing = true
  67. Sound.Looped = false
  68. Sound.Volume = 1
  69.                       wait(0.2)
  70. newimage:Destroy()
  71.                        
  72.    
  73.                end)
  74.        end
  75.    
  76.  
  77. end
  78. if localaction == 2 then
  79. for i,v in pairs(game.Players:GetPlayers()) do
  80.  
  81.                spawn(function()
  82.                        local newgui = Instance.new("ScreenGui",v.PlayerGui)
  83.                        newgui.Name = "Screamer"
  84.                        local newimage = Instance.new("ImageLabel",newgui)
  85.                        newimage.Image = "rbxassetid://1119705746"
  86.                        newimage.Size = UDim2.new(1,0,1,0)
  87. local Sound = Instance.new("Sound")
  88. local Id = "11984351"
  89. Sound.Parent = game.Workspace
  90. Sound.SoundId = "rbxassetid://"..Id
  91. Sound.Playing = true
  92. Sound.Looped = false
  93. Sound.Volume = 1
  94.                       wait(0.2)
  95. newimage:Destroy()
  96.                        
  97.    
  98.                end)
  99.        end
  100.    
  101.  
  102. end
  103. if localaction == 3 then
  104. for i,v in pairs(game.Players:GetPlayers()) do
  105.  
  106.                spawn(function()
  107.                        local newgui = Instance.new("ScreenGui",v.PlayerGui)
  108.                        newgui.Name = "Screamer"
  109.                        local newimage = Instance.new("ImageLabel",newgui)
  110.                        newimage.Image = "rbxassetid://2293755576"
  111.                        newimage.Size = UDim2.new(1,0,1,0)
  112. local Sound = Instance.new("Sound")
  113. local Id = "11984351"
  114. Sound.Parent = game.Workspace
  115. Sound.SoundId = "rbxassetid://"..Id
  116. Sound.Playing = true
  117. Sound.Looped = false
  118. Sound.Volume = 1
  119.                       wait(0.2)
  120. newimage:Destroy()
  121.                        
  122.    
  123.                end)
  124.        end
  125. end
  126. if localaction == 4 then
  127. for i,v in pairs(game.Players:GetPlayers()) do
  128.  
  129.                spawn(function()
  130.                        local newgui = Instance.new("ScreenGui",v.PlayerGui)
  131.                        newgui.Name = "Screamer"
  132.                        local newimage = Instance.new("ImageLabel",newgui)
  133.                        newimage.Image = "rbxassetid://100876676"
  134.                        newimage.Size = UDim2.new(1,0,1,0)
  135. local Sound = Instance.new("Sound")
  136. local Id = "11984351"
  137. Sound.Parent = game.Workspace
  138. Sound.SoundId = "rbxassetid://"..Id
  139. Sound.Playing = true
  140. Sound.Looped = false
  141. Sound.Volume = 1
  142.                       wait(0.2)
  143. newimage:Destroy()
  144.                        
  145.    
  146.                end)
  147.        end
  148. end
  149.  
  150. if localaction == 5 then
  151. for i,v in pairs(game.Players:GetPlayers()) do
  152.  
  153.                spawn(function()
  154.                        local newgui = Instance.new("ScreenGui",v.PlayerGui)
  155.                        newgui.Name = "Screamer"
  156.                        local newimage = Instance.new("ImageLabel",newgui)
  157.                        newimage.Image = "rbxassetid://11518873999"
  158.                        newimage.Size = UDim2.new(1,0,1,0)
  159. local Sound = Instance.new("Sound")
  160. local Id = "11984351"
  161. Sound.Parent = game.Workspace
  162. Sound.SoundId = "rbxassetid://"..Id
  163. Sound.Playing = true
  164. Sound.Looped = false
  165. Sound.Volume = 1
  166.                       wait(0.2)
  167. newimage:Destroy()
  168.                        
  169.  
  170.                end)
  171.        end
  172. end
  173. end
  174. end)
  175. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  176.                Text = "[ERROR_CODE]:Survive and Escape the Maze.";
  177.                Color = Color3.fromRGB(255, 255, 255);
  178.            })
  179. for i = 1,1 do
  180. local floor = Instance.new("Part")
  181. floor.Parent = workspace
  182. floor.Anchored = true
  183. floor.Size = Vector3.new(2048, 2, 2048)
  184. floor.CanCollide = true
  185. floor.Position = Vector3.new(-18, 5000, -1902.011)
  186. floor.Material = "Marble"
  187. end
  188. for i = 1,1 do
  189. local ceiling = Instance.new("Part")
  190. ceiling.Parent = workspace
  191. ceiling.Anchored = true
  192. ceiling.Size = Vector3.new(2048, 2, 2048)
  193. ceiling.CanCollide = true
  194. ceiling.Position = Vector3.new(-18, 5016, -1902.011)
  195. ceiling.Material = "Slate"
  196. end
  197. for i = 1,1 do
  198. local Wall1 = Instance.new("Part")
  199. Wall1.Parent = workspace
  200. Wall1.Anchored = true
  201. Wall1.Size = Vector3.new(1, 15, 2048)
  202. Wall1.CanCollide = true
  203. Wall1.Position = Vector3.new(1005.883, 5008, -1901.912)
  204. Wall1.Material = "Brick"
  205. end
  206. for i = 1,1 do
  207. local Wall2 = Instance.new("Part")
  208. Wall2.Parent = workspace
  209. Wall2.Anchored = true
  210. Wall2.Size = Vector3.new(1, 15, 2048)
  211. Wall2.CanCollide = true
  212. Wall2.Position = Vector3.new(-1041.5, 5008, -1901.912)
  213. Wall2.Material = "Brick"
  214. end
  215. for i = 1,1 do
  216. local Wall3 = Instance.new("Part")
  217. Wall3.Parent = workspace
  218. Wall3.Anchored = true
  219. Wall3.Size = Vector3.new(2048, 15, 1)
  220. Wall3.CanCollide = true
  221. Wall3.Position = Vector3.new(-17.658, 5008, -2925.461)
  222. Wall3.Material = "Brick"
  223. end
  224. for i = 1,1 do
  225. local Wall4 = Instance.new("Part")
  226. Wall4.Parent = workspace
  227. Wall4.Anchored = true
  228. Wall4.Size = Vector3.new(2048, 15, 1)
  229. Wall4.CanCollide = true
  230. Wall4.Position = Vector3.new(-17.658, 5008, -878.011)
  231. Wall4.Material = "Brick"
  232. end
  233. for i = 1,1 do
  234. local MazeWall = Instance.new("Part")
  235. MazeWall.Parent = workspace
  236. MazeWall.Anchored = true
  237. MazeWall.Size = Vector3.new(43,15,1)
  238. MazeWall.CanCollide = true
  239. MazeWall.Position = Vector3.new(984.5, 5008, -2908.508 )
  240. MazeWall.Material = "Brick"
  241. end
  242. for i = 1,1 do
  243. local MazeWall = Instance.new("Part")
  244. MazeWall.Parent = workspace
  245. MazeWall.Anchored = true
  246. MazeWall.Size = Vector3.new(1,15,63)
  247. MazeWall.CanCollide = true
  248. MazeWall.Position = Vector3.new(963.737, 5008, -2876.91)
  249. MazeWall.Material = "Brick"
  250. end
  251. for i = 1,1 do
  252. local MazeWall = Instance.new("Part")
  253. MazeWall.Parent = workspace
  254. MazeWall.Anchored = true
  255. MazeWall.Size = Vector3.new(1,15,63)
  256. MazeWall.CanCollide = true
  257. MazeWall.Position = Vector3.new(941.737, 5008, -2876.91)
  258. MazeWall.Material = "Brick"
  259. end
  260. for i = 1,1 do
  261. local MazeWall = Instance.new("Part")
  262. MazeWall.Parent = workspace
  263. MazeWall.Anchored = true
  264. MazeWall.Size = Vector3.new(44,15,1)
  265. MazeWall.CanCollide = true
  266. MazeWall.Position = Vector3.new(920.5, 5008, -2908.508)
  267. MazeWall.Material = "Brick"
  268. end
  269. for i = 1,1 do
  270. local part = Instance.new("Part")
  271. part.Parent = workspace
  272. part.Anchored = true
  273. part.Size = Vector3.new(5,2,1)
  274. part.CanCollide = true
  275. part.Material = "Concrete"
  276. part.Position = Vector3.new(-1040.322, 5009, -883.831)
  277. part.Rotation = Vector3.new(0,-90,0)
  278. local parttext = Instance.new("SurfaceGui", part)
  279. parttext.Adornee = part
  280. local parttext2 = Instance.new("TextLabel", parttext)
  281. parttext2.Size = UDim2.new(1, 1, 1, 1)
  282. parttext2.TextScaled = true
  283. parttext2.Text = "Exit"
  284. parttext2.Font = "Code"
  285. end
  286. local Part = Instance.new("Part", workspace)
  287. Part.Size = Vector3.new(1, 11, 9)
  288. Part.Locked = true
  289. Part.Anchored = true
  290. Part.CFrame = CFrame.new(-1040.822, 5006, -883.831)
  291. Part.Material = "Corroded Metal"
  292.  
  293. Touched = false
  294. Part.Touched:connect(function(player)
  295. if Touched == false then
  296. Touched = true
  297. if player.Parent.ClassName == "Model" then
  298. local Sound = Instance.new("Sound")
  299. local Id = "153993026"
  300. Sound.Parent = game.Workspace
  301. Sound.SoundId = "rbxassetid://"..Id
  302. Sound.Playing = true
  303. Sound.Looped = false
  304. Sound.Volume = 1
  305. game:FindService("RunService"):Set3dRenderingEnabled(false)
  306. wait(1)
  307. local plr = game.Players.LocalPlayer
  308. local gui = Instance.new("ScreenGui")
  309. gui.Parent = plr.PlayerGui
  310. gui.ResetOnSpawn = false
  311. local End = Instance.new("TextLabel")
  312. End.Parent = gui
  313. End.BackgroundTransparency = 1
  314. End.Size = UDim2.new(2, 0, 2, 0)
  315. End.Position = UDim2.new(-0.5, 0, 0 ,-255)
  316. End.TextXAlignment = Enum.TextXAlignment.Center
  317. End.TextScaled = true
  318. End.Text = "Well...This is the end..."
  319. End.TextColor3 = Color3.new(0, 0, 0)
  320. End.Font = Enum.Font.IndieFlower
  321. wait(4)
  322. End.Text = "You can run away..."
  323. wait(4)
  324. End.Text = "."
  325. wait(0.5)
  326. End.Text = ".."
  327. wait(0.5)
  328. End.Text = "..."
  329. wait(1)
  330. End.Text = ""
  331. game:FindService("RunService"):Set3dRenderingEnabled(true)
  332. wait()
  333. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 10
  334. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(999.056, 5000.929, -2940.162)
  335. local camera = workspace.CurrentCamera
  336. local player = game.Players.LocalPlayer
  337. local character = player.Character
  338. local humanoid = character.Humanoid
  339.  local lighting = game:GetService("Lighting")
  340. lighting.FogEnd = 15
  341. lighting.FogColor = Color3.new(0, 0, 0)
  342. lighting.TimeOfDay = 0
  343. -- camera settings
  344. player.CameraMaxZoomDistance = 0.5 -- force first person
  345. camera.FieldOfView = 100
  346. humanoid.CameraOffset = Vector3.new(0, 0, -1)
  347.  
  348. -- set and keep every body part Transparency to its real transparency
  349. for childIndex, child in pairs(character:GetChildren()) do
  350.     if child:IsA("BasePart") and child.Name ~= "Head" then
  351.        
  352.         child:GetPropertyChangedSignal("LocalTransparencyModifier"):Connect(function()
  353.             child.LocalTransparencyModifier = child.Transparency
  354.         end)
  355.        
  356.         child.LocalTransparencyModifier = child.Transparency
  357.        
  358.     end
  359. end
  360.  
  361. -- if the player steps in a vehicle
  362. camera:GetPropertyChangedSignal("CameraSubject"):Connect(function()
  363.     if camera.CameraSubject:IsA("VehicleSeat") then
  364.         camera.CameraSubject = humanoid
  365.     end
  366. end)
  367. for i = 1,1 do
  368. local ExitWall1 = Instance.new("Part")
  369. ExitWall1.Parent = workspace
  370. ExitWall1.Anchored = true
  371. ExitWall1.Size = Vector3.new(1,15,151)
  372. ExitWall1.CanCollide = true
  373. ExitWall1.Position = Vector3.new(990.704, 5007.929, -3013.313)
  374. ExitWall1.Material = "Brick"
  375. end
  376. for i = 1,1 do
  377. local ExitWall2 = Instance.new("Part")
  378. ExitWall2.Parent = workspace
  379. ExitWall2.Anchored = true
  380. ExitWall2.Size = Vector3.new(1,15,151)
  381. ExitWall2.CanCollide = true
  382. ExitWall2.Position = Vector3.new(1006.704, 5007.929, -3013.313)
  383. ExitWall2.Material = "Brick"
  384. end
  385. for i = 1,1 do
  386. local ExitWall3 = Instance.new("Part")
  387. ExitWall3.Parent = workspace
  388. ExitWall3.Anchored = true
  389. ExitWall3.Size = Vector3.new(16, 15, 1)
  390. ExitWall3.CanCollide = true
  391. ExitWall3.Position = Vector3.new(998.277, 5007.929, -2938.156)
  392. ExitWall3.Material = "Brick"
  393. end
  394. for i = 1,1 do
  395. local ExitWall4 = Instance.new("Part")
  396. ExitWall4.Parent = workspace
  397. ExitWall4.Anchored = true
  398. ExitWall4.Size = Vector3.new(17, 1, 151)
  399. ExitWall4.CanCollide = true
  400. ExitWall4.Position = Vector3.new(998.776, 5015.429, -3013.551)
  401. ExitWall4.Material = "Brick"
  402. end
  403. for i = 1,1 do
  404. local ExitWall5 = Instance.new("Part")
  405. ExitWall5.Parent = workspace
  406. ExitWall5.Anchored = true
  407. ExitWall5.Size = Vector3.new(17,1,151)
  408. ExitWall5.CanCollide = true
  409. ExitWall5.Position = Vector3.new(998.776, 5000.429, -3013.551)
  410. ExitWall5.Material = "Brick"
  411. end
  412. local Part = Instance.new("Part", workspace)
  413. Part.Size = Vector3.new(16, 15, 1)
  414. Part.Locked = true
  415. Part.Anchored = true
  416. Part.CFrame = CFrame.new(998.277, 5007.929, -3089.156)
  417. Part.Material = "Neon"
  418.  
  419. Touched = false
  420. Part.Touched:connect(function(player)
  421. if Touched == false then
  422. Touched = true
  423. if player.Parent.ClassName == "Model" then
  424. local Sound = Instance.new("Sound")
  425. local Id = "836142578"
  426. Sound.Parent = game.Workspace
  427. Sound.SoundId = "rbxassetid://"..Id
  428. Sound.Playing = true
  429. Sound.Looped = false
  430. Sound.Volume = 1
  431. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  432. game:FindService("RunService"):Set3dRenderingEnabled(false)
  433. local plr = game.Players.LocalPlayer
  434. local gui = Instance.new("ScreenGui")
  435. gui.Parent = plr.PlayerGui
  436. gui.ResetOnSpawn = false
  437. local End = Instance.new("TextLabel")
  438. End.Parent = gui
  439. End.BackgroundTransparency = 1
  440. End.Size = UDim2.new(2, 0, 2, 0)
  441. End.Position = UDim2.new(-0.5, 0, 0 ,-255)
  442. End.TextXAlignment = Enum.TextXAlignment.Center
  443. End.TextScaled = true
  444. End.Text = "You think it realy end?"
  445. End.TextColor3 = Color3.new(0, 0, 0)
  446. End.Font = Enum.Font.IndieFlower
  447. wait(4)
  448. End.Text = "..."
  449. wait(1)
  450. End.Text = "FUN NEVER END!"
  451. wait(3)
  452. game.Players.LocalPlayer:Kick("chapter 3 coming soon")
  453.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  454.         player.Parent.Humanoid.HipHeight = 0/0
  455.         wait(3)
  456.         player.Parent:Destroy()
  457.     end
  458. end
  459. Touched = false
  460. end
  461. end)
  462.     if player.Parent.Name ~= game.Players.LocalPlayer.Name then
  463.         player.Parent.Humanoid.HipHeight = 0/0
  464.         wait(3)
  465.         player.Parent:Destroy()
  466.     end
  467. end
  468. Touched = false
  469. end
  470. end)
  471. wait(2)
  472. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  473.                Text = "[ERROR_CODE]:Wait a sec.";
  474.                Color = Color3.fromRGB(255, 255, 255);
  475.            })
  476. wait(4)
  477. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  478.                Text = "[ERROR_CODE]:Where is your FlashLight?";
  479.                Color = Color3.fromRGB(255, 255, 255);
  480.            })
  481. wait(3)
  482. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  483.                Text = "[ERROR_CODE]:You have to walk in the dark...";
  484.                Color = Color3.fromRGB(255, 255, 255);
  485.            })
  486. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement