Advertisement
ERROR_CODE

FNAF1

Feb 7th, 2024 (edited)
860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.56 KB | None | 0 0
  1. Map = game:GetObjects("rbxassetid://16275693682")[1]
  2.  
  3. FnafSong = Instance.new("Sound")
  4. GameUserInterface = Instance.new("ScreenGui")
  5. FullScreenBlack = Instance.new("Frame")
  6. PlayButton = Instance.new("TextButton")
  7. QuiteButton = Instance.new("TextButton")
  8. Value_1 = 0
  9. Players = game:GetService("Players")
  10. LocalPlayer = Players.LocalPlayer
  11. OfficeSoundPart = Instance.new("Part")
  12. Character = LocalPlayer.Character
  13. LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
  14. Sky = Instance.new("Sky")
  15. PrevImg = Instance.new("ImageLabel")
  16. Office = Instance.new("Sound")
  17. CreditsButton = Instance.new("TextButton")
  18. BackButton = Instance.new("TextButton")
  19. Dev = Instance.new("ImageLabel")
  20. DevName = Instance.new("TextLabel")
  21. Fog = game:GetService("Lighting")
  22.  
  23. GameUserInterface.Parent = game.CoreGui
  24. Map.Parent = game.Workspace
  25.  
  26. OfficeSoundPart.Parent = workspace
  27. OfficeSoundPart.Anchored = true
  28. OfficeSoundPart.Size = Vector3.new(4, 1, 2)
  29. OfficeSoundPart.CanCollide = false
  30. OfficeSoundPart.Rotation = Vector3.new(0, 180, 0)
  31. OfficeSoundPart.Position = Vector3.new(21.795, 3819.432, 37.465)
  32. OfficeSoundPart.Transparency = 1
  33.  
  34. PrevImg.Name = "PrevImg"
  35. PrevImg.Parent = GameUserInterface
  36. PrevImg.AnchorPoint = Vector2.new(0.5, 0.5)
  37. PrevImg.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  38. PrevImg.Position = UDim2.new(0.5, 0, 0.455, 0)
  39. PrevImg.Size = UDim2.new(2, 2, 2.22, 2)
  40. PrevImg.Image = "rbxassetid://18683827710"
  41.  
  42. Sky.Name = "Sky"
  43. Sky.SkyboxBk = "http://www.roblox.com/asset/?id=248431616"
  44. Sky.SkyboxDn = "http://www.roblox.com/asset/?id=248431677"
  45. Sky.SkyboxFt = "http://www.roblox.com/asset/?id=248431598"
  46. Sky.SkyboxLf = "http://www.roblox.com/asset/?id=248431686"
  47. Sky.SkyboxRt = "http://www.roblox.com/asset/?id=248431611"
  48. Sky.SkyboxUp = "http://www.roblox.com/asset/?id=248431605"
  49. Sky.Parent = game.Lighting
  50.  
  51. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(75.473, 3861.811, -59.104)
  52. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  53.  
  54. PlayButton.Name = "PlayButton"
  55. PlayButton.Parent = GameUserInterface
  56. PlayButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  57. PlayButton.BackgroundTransparency = 1
  58. PlayButton.Position = UDim2.new(0.05, 0, 0.88, 0)
  59. PlayButton.Size = UDim2.new(0, 190, 0, 50)
  60. PlayButton.AutoButtonColor = false
  61. PlayButton.Font = Enum.Font.Arcade
  62. PlayButton.Text = "Play"
  63. PlayButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  64. PlayButton.TextSize = 14.000
  65. PlayButton.TextScaled = true
  66. PlayButton.TextWrapped = true
  67.  
  68. BackButton.Name = "BackButton"
  69. BackButton.Parent = GameUserInterface
  70. BackButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  71. BackButton.BackgroundTransparency = 1
  72. BackButton.Position = UDim2.new(0.4, 0, 0.88, 0)
  73. BackButton.Size = UDim2.new(0, 190, 0, 50)
  74. BackButton.AutoButtonColor = false
  75. BackButton.Font = Enum.Font.Arcade
  76. BackButton.Text = "Back"
  77. BackButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  78. BackButton.TextSize = 14.000
  79. BackButton.TextScaled = true
  80. BackButton.TextWrapped = true
  81.  
  82. BackButton.Visible = false
  83.  
  84. CreditsButton.Name = "CreditsButton"
  85. CreditsButton.Parent = GameUserInterface
  86. CreditsButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  87. CreditsButton.BackgroundTransparency = 1
  88. CreditsButton.Position = UDim2.new(0.4, 0, 0.88, 0)
  89. CreditsButton.Size = UDim2.new(0, 190, 0, 50)
  90. CreditsButton.AutoButtonColor = false
  91. CreditsButton.Font = Enum.Font.Arcade
  92. CreditsButton.Text = "Credits"
  93. CreditsButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  94. CreditsButton.TextSize = 14.000
  95. CreditsButton.TextScaled = true
  96. CreditsButton.TextWrapped = true
  97.  
  98. QuiteButton.Name = "QuiteButton"
  99. QuiteButton.Parent = GameUserInterface
  100. QuiteButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  101. QuiteButton.BackgroundTransparency = 1
  102. QuiteButton.Position = UDim2.new(0.75, 0, 0.88, 0)
  103. QuiteButton.Size = UDim2.new(0, 190, 0, 50)
  104. QuiteButton.AutoButtonColor = false
  105. QuiteButton.Font = Enum.Font.Arcade
  106. QuiteButton.Text = "Quite"
  107. QuiteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  108. QuiteButton.TextSize = 14.000
  109. QuiteButton.TextScaled = true
  110. QuiteButton.TextWrapped = true
  111.  
  112. FullScreenBlack.Parent = GameUserInterface
  113. FullScreenBlack.Position = UDim2.new(0.5, 0, 0.455, 0)
  114. FullScreenBlack.Size = UDim2.new(1, 1, 1.11, 1)
  115. FullScreenBlack.AnchorPoint = Vector2.new(0.5, 0.5)
  116. FullScreenBlack.BackgroundTransparency = Value_1
  117. FullScreenBlack.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  118. FullScreenBlack.BorderSizePixel = 0
  119.  
  120. Dev.Name = "Dev"
  121. Dev.Parent = GameUserInterface
  122. Dev.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  123. Dev.Position = UDim2.new(0.4, 0, -0.05, 0)
  124. Dev.Size = UDim2.new(0, 180, 0, 180)
  125. Dev.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=3323558881&width=999&height=999&format=png"
  126. Dev.Visible = false
  127.  
  128. DevName.Name = "DevName"
  129. DevName.Parent = GameUserInterface
  130. DevName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  131. DevName.Position = UDim2.new(0.4, 0, 0.4, 0)
  132. DevName.Size = UDim2.new(0, 180, 0, 200)
  133. DevName.Font = Enum.Font.Arcade
  134. DevName.Text = "ERROR_CODE \n\n\nH.Programmer \n H.Designer \n H.Developer"
  135. DevName.TextColor3 = Color3.fromRGB(0, 0, 0)
  136. DevName.TextSize = 20
  137. DevName.TextScaled = false
  138. DevName.TextWrapped = true
  139. DevName.Visible = false
  140. wait(2)
  141. Office.Parent = OfficeSoundPart
  142. Office.SoundId = "rbxassetid://7018639553"
  143. Office.Playing = true
  144. Office.Looped = true
  145. Office.Volume = 0.5
  146. Office:Stop()
  147.  
  148. FnafSong.Parent = game.Workspace
  149. FnafSong.SoundId = "rbxassetid://6913550990"
  150. FnafSong.Playing = true
  151. FnafSong.Looped = true
  152. FnafSong.Volume = 1
  153. FnafSong:Stop()
  154.  
  155. spawn(function()
  156. for i = 1,100 do
  157. wait()
  158. Value_1 = Value_1 + 0.01
  159. FullScreenBlack.BackgroundTransparency = Value_1
  160. end
  161. end)
  162.  
  163. PrevImg:TweenSize(UDim2.new(1, 1, 1.11, 1),"InOut","Sine",10)
  164.  
  165.  
  166. FnafSong:Play()
  167.  
  168.  
  169. PlayButton.MouseButton1Click:Connect(function()
  170. FnafSong:Stop()
  171. Office:Play()
  172. PrevImg.Visible = false
  173. PlayButton.Visible = false
  174. QuiteButton.Visible = false
  175. CreditsButton.Visible = false
  176. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(21.379, 3817, 47.049)
  177. Fog.FogEnd = 50
  178. Fog.FogColor = Color3.new(0, 0, 0)
  179. Fog.TimeOfDay = 0
  180. end)
  181.  
  182. CreditsButton.MouseButton1Click:Connect(function()
  183. PlayButton.Visible = false
  184. QuiteButton.Visible = false
  185. BackButton.Visible = true
  186. CreditsButton.Visible = false
  187. Dev.Visible = true
  188. DevName.Visible = true
  189. end)
  190.  
  191. BackButton.MouseButton1Click:Connect(function()
  192. PlayButton.Visible = true
  193. QuiteButton.Visible = true
  194. BackButton.Visible = false
  195. CreditsButton.Visible = true
  196. Dev.Visible = false
  197. DevName.Visible = false
  198. end)
  199.  
  200. QuiteButton.MouseButton1Click:Connect(function()
  201. LocalPlayer:Kick("See You Soon")
  202. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement