Facebook
From cent3968, 2 Weeks ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 79
  1. local plr = game.Players.LocalPlayer
  2. local Char = plr.Character or workspace.Chars:WaitForChild(plr.Name)
  3.  
  4. local Events = script.Events
  5. local Values = script.Values
  6. local ReplicatedStorage = game.ReplicatedStorage
  7.  
  8. local UI = game:GetService("UserInputService")
  9. local TweenService = game:GetService("TweenService")
  10.  
  11. local Torso:BasePart = Char:WaitForChild("Torso",1)
  12. local Head:BasePart = Char:WaitForChild("Head",1)
  13.  
  14. local iswon = false
  15. local cs = false
  16. local str = false
  17.  
  18. local vhslinedb = false
  19.  
  20. local camanSpawned = false
  21. local camandb = false
  22. local camanCurCam:BasePart
  23. local camanCurCamID
  24. local camanpart:BasePart
  25.  
  26. local inMinigame = false
  27. local MinigameEvent:RemoteEvent
  28. local MinigameSound:Sound
  29. local MinigameValue = 0
  30. local MinigameValue2 = 0
  31. local MinigameValue3 = 0
  32.  
  33. repeat task.wait() until Char
  34.  
  35. local Neck:Motor6D = Torso:WaitForChild('Neck')
  36. local Rleg:Motor6D = Torso:WaitForChild('Right Hip')
  37. local Lleg:Motor6D = Torso:WaitForChild('Left Hip')
  38.  
  39. local RootJoint:Motor6D = Char:WaitForChild("HumanoidRootPart"):WaitForChild("RootJoint")
  40.  
  41. local prompt = game:GetService("ProximityPromptService")
  42.  
  43. local NeckC0 = Neck.C0
  44. local RootJointC0 = RootJoint.C0
  45. local RlegC0 = Rleg.C0
  46. local LlegC0 = Lleg.C0
  47.  
  48. local Cam = workspace.Camera
  49. local ComputerPart:BasePart
  50. local oldcampos
  51. local oldcampos2
  52. local oldcampos3
  53.  
  54. local screamer_chance = 1
  55.  
  56. local Wifi = workspace.WifiState
  57.  
  58. local InCams = false
  59. local CurCamId = 1
  60. local HidePart:BasePart
  61.  
  62. local light2 = ReplicatedStorage.Storage.lightsofflight:Clone()
  63.  
  64. light2.Parent = Torso
  65.  
  66. local lowsan = 40
  67.  
  68. local san = 100
  69. local ene = 100
  70.  
  71. local coffegives = 50
  72.  
  73. local coffetip = true
  74.  
  75. local cfdb = false
  76.  
  77.  
  78.  
  79. local StarterGUI = game:GetService("StarterGui")
  80.  
  81.  
  82. repeat
  83.  local success = pcall(function()
  84.   StarterGUI:SetCore("ResetButtonCallback", false)
  85.  end)
  86.  task.wait(1)
  87. until success
  88.  
  89. local hiden = false
  90.  
  91. local killed = false
  92.  
  93. local Humanoid:Humanoid = Char:WaitForChild("Humanoid")
  94.  
  95. local GUI = script.Parent:WaitForChild("ScreenGui")
  96.  
  97. local vhsdb = false
  98. local Svdb = false
  99. local watchingTip = false
  100. local TipPart:BasePart
  101.  
  102. local ComputerAnim
  103.  
  104. local Mouse = plr:GetMouse()
  105.  
  106. local LightPart= Instance.new("Part",workspace)
  107. local Light= Instance.new("SurfaceLight",LightPart)
  108. GUI.BlackScreen.BackgroundTransparency = 0
  109. GUI.readyornot.TextLabel.Visible = true
  110. repeat until game.Loaded
  111. wait(1)
  112.  
  113. TweenService:Create(GUI.BlackScreen,TweenInfo.new(0.5),{BackgroundTransparency = 1}):Play()
  114.  
  115.  
  116. local GlitchImages = {
  117.  [1] = "rbxassetid://434633166";
  118.  [2] = "rbxassetid://7851707548";
  119.  [3] = "rbxassetid://2270890360";
  120.  [4] = "rbxassetid://264610929";
  121. }
  122.  
  123. local Obectives = {}
  124.  
  125. local InstancesToCheck =
  126.  {
  127.   plr,
  128.   Char,
  129.   Head,
  130.   Torso,
  131.   Neck,
  132.   RootJoint,
  133.   Rleg,
  134.   Lleg,
  135.   Values,
  136.   Events
  137.  
  138.  }
  139.  
  140. CheckForInstances = function()
  141.  local Checked = 0
  142.  for i , inst in ipairs(InstancesToCheck) do
  143.   local typ = typeof(inst)
  144.   if (typ == "Instance") then
  145.    Checked += 1
  146.   end
  147.  end
  148.  if (Checked == #InstancesToCheck) then
  149.   return true
  150.  else
  151.   return false
  152.  end
  153. end
  154.  
  155. for i ,cam:BasePart in ipairs(workspace.Cams:GetChildren()) do
  156.  local temp = GUI.CAMTemplate:Clone()
  157.  temp.CAMID.Text = "["..i.."]"
  158.  temp.TextLabel.Text = cam:GetAttribute("RoomName")
  159.  temp.Parent = GUI.Cameras
  160.  temp.Name = temp.TextLabel.Text
  161.  temp.Visible = true
  162. end
  163.  
  164. function San_D()
  165.  
  166. end
  167.  
  168. GUI.readyornot.Visible = true
  169.  
  170.  
  171.  
  172. function Scremer()
  173.  if (not killed) then
  174.   GUI.energy.Visible = false
  175.  ReplicatedStorage.Events.sv_Scremer:FireServer()
  176.  GUI.Sanity.Visible = false
  177.  GUI.Screamer.Visible = true
  178.  local head = ReplicatedStorage.Storage.Head:Clone()
  179.  head.Parent = workspace
  180.  head.Anchored = true
  181.  head.CanCollide = false
  182.  killed = true
  183.  workspace.Sounds.Static:Play()
  184.  game.Lighting.ColorCorrection.Contrast = 4
  185.  workspace.Sounds.Static.Volume = 0
  186.  local t = 3
  187.  function update()
  188.   head.Position = Cam.CFrame.Position + Cam.CFrame.LookVector * t
  189.   head.CFrame = CFrame.lookAt(head.Position,Cam.CFrame.Position)
  190.   InCams = false
  191.   UI.MouseDeltaSensitivity = 0
  192.    UI.MouseIconEnabled = false
  193.    Values.WalkSpeed.Value = 0
  194.  end
  195.  TweenService:Create(workspace.Sounds.Static,TweenInfo.new(4),{Volume =80}):Play()
  196.  game["Run Service"]:BindToRenderStep("head",2,update)
  197.  wait(3)
  198.  t = 1
  199.  
  200.  wait(2)
  201.  GUI.Screamer.ImageLabel.BackgroundTransparency = 0
  202.  GUI.Screamer.eye.Visible = true
  203.  workspace.Sounds.Static.Volume = 0
  204.  wait(3)
  205.  GUI.Screamer.ImageLabel.BackgroundTransparency = 1
  206.  workspace.Sounds.Static.Volume = 20
  207.  workspace.Sounds.error.Volume = 5
  208.  wait(0.2)
  209.  local text = ""
  210.  local letteers = "qwertyuiopasdfghjklzxcvbnm"
  211.   local sym = "What a loser?"
  212.  
  213.  for i = 1, 10,1 do
  214.   local ram = math.random(1,2)
  215.   if (ram == 1) then
  216.    local letter = math.random(1,#letteers)
  217.    text = text..string.sub(letteers,letter,letter)
  218.   elseif (ram == 2) then
  219.    local letter = math.random(1,#sym)
  220.    text = text..string.sub(sym,letter,letter)
  221.  
  222.   end
  223.  end
  224.  
  225.   plr:Kick(text)
  226.  end
  227. end
  228.  
  229. function Hide(bool)
  230.  if (HidePart) then
  231.   if (bool) then
  232.    oldcampos = Cam.CFrame
  233.    repeat
  234.     Cam.CameraType = Enum.CameraType.Scriptable
  235.    until Cam.CameraType == Enum.CameraType.Scriptable
  236.    hiden = true
  237.    TweenService:Create(Cam,TweenInfo.new(0.3),{CFrame = HidePart.CFrame}):Play()
  238.    wait(0.3)
  239.    function update()
  240.     local curtime = tick()
  241.     local wave = math.sin(curtime * 5) * .0025
  242.     local wave2 = math.sin(curtime * 10) * .005
  243.     local wave3 = math.sin(curtime * 2.5) * .0015
  244.     Cam.CFrame = HidePart.CFrame * CFrame.Angles(wave,wave2,wave3)
  245.     Values.BlackScreenTransparency.Value = 0
  246.     prompt.Enabled = false
  247.    end
  248.    game["Run Service"]:BindToRenderStep("hidecam",1,update)
  249.    
  250.   else
  251.    prompt.Enabled = true
  252.    hiden = false
  253.    game["Run Service"]:UnbindFromRenderStep("hidecam")
  254.    TweenService:Create(Cam,TweenInfo.new(0.3),{CFrame = oldcampos}):Play()
  255.    wait(0.3)
  256.    Cam.CameraType = Enum.CameraType.Custom
  257.   end
  258.  end
  259.  
  260. end
  261.  
  262. function minigame(event,bool)
  263.  if bool then
  264.   inMinigame = true
  265.   MinigameValue = 0
  266.   MinigameValue3 = 0
  267.   MinigameEvent = event
  268.   MinigameValue2 = math.random(2,5) / 10
  269.   prompt.Enabled = false
  270.   GUI.TextButton.Modal = true
  271.   if (MinigameSound) then
  272.    MinigameSound:Play()
  273.   end
  274.  else
  275.   inMinigame = false
  276.   prompt.Enabled = true
  277.   GUI.TextButton.Modal = false
  278.   if (MinigameSound) then
  279.    MinigameSound:Stop()
  280.    MinigameSound:Destroy()
  281.   end
  282.  end
  283.  
  284. end
  285.  
  286. ReplicatedStorage.Events.Hide.OnClientEvent:Connect(function(prt)
  287.  if (not iswon) then
  288.   HidePart = prt
  289.   Hide(true)
  290.  end
  291.  
  292. end)
  293.  
  294. GUI.Unhiged.EXIT.MouseButton1Down:Connect(function()
  295.  Hide(false)
  296. end)
  297.  
  298. ReplicatedStorage.Events.Scremer.OnClientEvent:Connect(Scremer)
  299.  
  300. function glitch()
  301.  GUI.BlackScreen.ImageLabel1.Image = GlitchImages[math.random(1,#GlitchImages)]
  302.  GUI.BlackScreen.BackgroundTransparency = 0
  303.  GUI.BlackScreen.ImageLabel1.ImageTransparency = 0.5
  304.  GUI.BlackScreen.ImageLabel1.TileSize = UDim2.new(1,0,1,0)
  305.  if (InCams) then
  306.   GUI.Loading.Visible = true
  307.  end
  308.  
  309.  TweenService:Create(GUI.BlackScreen.ImageLabel1,TweenInfo.new(0.4),{TileSize = UDim2.new(2,0,1,0)}):Play()
  310.  workspace.Sounds.hum:Play()
  311.  if (GUI.CamerasControl.Visible) then
  312.   workspace.Sounds.hum.Volume = 0.1
  313.  end
  314.  
  315.  wait(0.2)
  316.  GUI.Loading.Visible = false
  317.  TweenService:Create(workspace.Sounds.hum,TweenInfo.new(0.5),{Volume = 0}):Play()
  318.  TweenService:Create(GUI.BlackScreen,TweenInfo.new(0.3),{BackgroundTransparency = 1}):Play()
  319.  TweenService:Create(GUI.BlackScreen.ImageLabel1,TweenInfo.new(0.3),{ImageTransparency = 1}):Play()
  320. end
  321.  
  322. function Nextcam()
  323.  if (CurCamId < #workspace.Cams:GetChildren() and not Svdb) then
  324.   Svdb = true
  325.   CurCamId += 1
  326.   glitch()
  327.   wait(0.2)
  328.   Svdb = false
  329.  end
  330. end
  331.  
  332. function Prevcam()
  333.  if (CurCamId > 1 and not Svdb) then
  334.   Svdb = true
  335.   CurCamId -= 1
  336.   glitch()
  337.   wait(0.2)
  338.   Svdb = false
  339.  end
  340. end
  341.  
  342. GUI.CamerasControl.Prev.MouseButton1Down:Connect(function()
  343.  Prevcam()
  344. end)
  345.  
  346. GUI.CamerasControl.Next.MouseButton1Down:Connect(function()
  347.  Nextcam()
  348. end)
  349.  
  350. GUI.CamerasControl.EXIT.MouseButton1Down:Connect(function()
  351.  local chance = math.random(1,100)
  352.  
  353.  if (chance <= screamer_chance) then
  354.   local decal:Decal = ReplicatedStorage.Storage.screamerdecals:GetChildren()[math.random(1,#ReplicatedStorage.Storage.screamerdecals:GetChildren())]:Clone()
  355.  
  356.  
  357.   if (ComputerPart) then
  358.    decal.Parent = ComputerPart
  359.    game.Debris:AddItem(decal,0.25)
  360.    workspace.Sounds.metalpipe:Play()
  361.   end
  362.  
  363.  end
  364.  
  365.  InCams = false
  366.  Values.BlackScreenTransparency.Value = 0
  367.  
  368.  
  369.  repeat
  370.   Cam.CameraType = Enum.CameraType.Scriptable
  371.  until Cam.CameraType == Enum.CameraType.Scriptable
  372.  
  373.  Cam.CFrame = CFrame.new(ComputerPart.Position + ComputerPart.CFrame.LookVector * 2)
  374.  
  375.  TweenService:Create(Cam,TweenInfo.new(1),{CFrame =oldcampos2}):Play()
  376.  wait(1)
  377.  Cam.CameraType = Enum.CameraType.Custom
  378.  prompt.Enabled = true
  379.  
  380.  ReplicatedStorage.Events.cl_leftcams:FireServer()
  381.  
  382. end)
  383.  
  384.  
  385. local drinkAnim
  386.  
  387. function wld(a1,a2)
  388.  local weld = Instance.new("Motor6D",a1)
  389.  weld.Part0 = a1
  390.  weld.Part1 = a2
  391.  return weld
  392. end
  393.  
  394. local drinking =false
  395. local curecup
  396.  
  397. local bg = Instance.new("BodyGyro",Torso)
  398.  
  399. function drink()
  400.  if (not cfdb) then
  401.  
  402.  cfdb =true
  403.  workspace.Sounds.Drink:Play()
  404.  
  405.  
  406.  local cup = ReplicatedStorage.Storage.Paper_coffee_cup:Clone()
  407.  
  408.  cup.Parent = Char
  409.  
  410. curecup = cup
  411.  cup.LocalTransparencyModifier = 0
  412.  
  413.  
  414.  drinking = true
  415.  
  416.  if (not drinkAnim) then
  417.   drinkAnim = Humanoid:LoadAnimation(script.DrinkAnim)
  418.  end
  419.  
  420.  if (drinkAnim) then
  421.   drinkAnim:Play(0.4)
  422.  end
  423.   cup.Positi Arm").Position
  424.  wld(Char:WaitForChild("Right Arm"),cup)
  425.  
  426.  wait(2)
  427.  drinking = false
  428.  cup:Destroy()
  429.  Char:WaitForChild("Right Arm").LocalTransparencyModifier = 1
  430.  if (san + 10 <= 100) then
  431.   san += 10
  432.  elseif (san + 10 > 100) then
  433.   san = 100
  434.  end
  435.  
  436.  if (ene + coffegives <= 100) then
  437.   ene += coffegives
  438.  elseif (ene + coffegives > 100) then
  439.   ene = 100
  440.  end
  441.  wait(1)
  442.   cfdb =false
  443.  end
  444. end
  445.  
  446.  
  447. ReplicatedStorage.Events.cl_cofe.OnClientEvent:Connect(function()
  448.  drink()
  449. end)
  450.  
  451.  
  452. function newObjective(self,Name:string,DescText:string)
  453.  
  454.  
  455.    local NewTemp = GUI.OBJtemplate:Clone()
  456.    NewTemp.Name = Name
  457.          NewTemp.TextLabel.Text = DescText
  458.    NewTemp.Parent = GUI.OBJlist
  459.    NewTemp.Visible = true
  460.  table.insert(self,NewTemp)
  461.  NewTemp.TextLabel.TextTransparency = 1
  462.  TweenService:Create(NewTemp.TextLabel,TweenInfo.new(0.1),{TextTransparency = 0}):Play()
  463.  
  464. end
  465.  
  466. function ObjectComplete(self,Name)
  467.  for i ,Fram:Frame in self do
  468.   if (Fram.Name == Name) then
  469.    local tmp:Frame = Fram
  470.    tmp.IsComp.Text = "[✅]"
  471.    TweenService:Create(tmp.IsComp,TweenInfo.new(0.3),{TextColor3 = Color3.fromRGB(0, 170, 0)}):Play()
  472.    TweenService:Create(tmp.IsComp,TweenInfo.new(0.3),{Size = tmp.IsComp.Size + UDim2.fromOffset(10,10),Position = tmp.IsComp.Position - UDim2.fromOffset(5,5)}):Play()
  473.  
  474.    wait(1)
  475.    TweenService:Create(tmp.IsComp,TweenInfo.new(1),{TextTransparency = 1}):Play()
  476.    table.remove(self,i)
  477.    
  478.  
  479.    TweenService:Create(tmp,TweenInfo.new(0.3),{Transparency = 1}):Play()
  480.    TweenService:Create(tmp.IsComp,TweenInfo.new(0.1),{TextTransparency = 1}):Play()
  481.    TweenService:Create(tmp.TextLabel,TweenInfo.new(0.1),{TextTransparency = 1}):Play()
  482.    wait(0.3)
  483.    tmp:Destroy()
  484.   end
  485.  end
  486. end
  487.  
  488. function viewList(self)
  489.  for i ,inst in self do
  490.   print(inst)
  491.  end
  492. end
  493.  
  494. ReplicatedStorage.Events.NewObj.OnClientEvent:Connect(function(name,text)
  495.  newObjective(Obectives,name,text)
  496.  viewList(Obectives)
  497. end)
  498.  
  499. ReplicatedStorage.Events.ComObj.OnClientEvent:Connect(function(name)
  500.  ObjectComplete(Obectives,name)
  501.  viewList(Obectives)
  502. end)
  503.  
  504. local sounds = workspace.Sounds
  505.  
  506. local sanHead = ReplicatedStorage.Storage.Head:Clone()
  507. sanHead.Transparency = 1
  508. sanHead.CanCollide = false
  509. sanHead.Anchored = true
  510. sanHead.Parent = workspace
  511. local sanhddb = false
  512. local sanhdDelay = 0
  513.  
  514. local sanhdlen = 3
  515.  
  516. game["Run Service"].RenderStepped:Connect(function()
  517.  
  518.  if (san < lowsan and not sanhddb)  then
  519.   sanhddb = true
  520.   wait(math.random(4,8))
  521.   sanHead.Transparency = 0
  522.   Values.BlackScreenTransparency.Value = 0
  523.   sanhdlen = 3
  524.  
  525.   game.Lighting.ColorCorrection.Brightness = 0.1
  526.   task.wait(0.1)
  527.   sanhdlen = 2
  528.   task.wait(0.05)
  529.   game.Lighting.ColorCorrection.Brightness = 0
  530.  
  531.   sanHead.Transparency = 1
  532.   wait(math.random(4,6))
  533.   sanhddb = false
  534.  end
  535.  
  536. end)
  537.  
  538.  
  539.  
  540. function Cuscene(Canpart:BasePart,Animation:Animation,pos,LookingPos)
  541.  local model = ReplicatedStorage:WaitForChild("Viewmodel"):Clone()
  542.  cs = true
  543.  model.Parent = workspace
  544.  oldcampos3 = Cam.CFrame
  545.  model:MoveTo(pos or Char.PrimaryPart.Position)
  546.  
  547.  local function update()
  548.   TweenService:Create(Cam,TweenInfo.new(0.2),{CFrame = model:WaitForChild("CameraPart").CFrame}):Play()
  549.  end
  550.  
  551.  game["Run Service"]:BindToRenderStep("cutsc",1,update)
  552.  
  553.  for i ,v in ipairs(Char:GetChildren()) do
  554.   if (v:IsA("Shirt")) then
  555.    v:Clone().Parent = model
  556.   end
  557.  
  558.   if (v:IsA("Pants")) then
  559.    v:Clone().Parent = model
  560.   end
  561.  end
  562.  
  563.  model.Torso.CFrame = CFrame.lookAt(model.Torso.CFrame.Position,LookingPos - Vector3.new(0,1,0) or Char.PrimaryPart.Position - Vector3.new(0,1,0))
  564.  
  565.  local anim = model.Humanoid:LoadAnimation(Animation)
  566.  
  567.  repeat
  568.   Cam.CameraType = Enum.CameraType.Scriptable
  569.  until Cam.CameraType == Enum.CameraType.Scriptable
  570.  
  571.  if (anim) then
  572.   anim:Play()
  573.  end
  574.  
  575.  
  576.  
  577.  anim.Stopped:Connect(function()
  578.   cs = false
  579.   game["Run Service"]:UnbindFromRenderStep("cutsc")
  580.   model:Destroy()
  581.   TweenService:Create(Cam,TweenInfo.new(1),{CFrame = oldcampos3}):Play()
  582.   wait(0.3)
  583.   repeat
  584.    Cam.CameraType = Enum.CameraType.Custom
  585.   until Cam.CameraType == Enum.CameraType.Custom
  586.  
  587. end)
  588. end
  589.  
  590. ReplicatedStorage.Events.cl_cutscene.OnClientEvent:Connect(function(prt,pos,look,anim)
  591.  Cuscene(prt,anim,pos,look)
  592. end)
  593.  
  594. function endg()
  595.  GUI.WonScreen.BackgroundTransparency = 0
  596.  workspace.Sounds.doorbre:Play()
  597.  wait(2)
  598.  workspace.Sounds["Creature Roar Mix Of Animals Gate Creaks 1 (SFX)"]:Play()
  599.  wait(2)
  600.  workspace.Sounds.gor:Play()
  601.  wait(0.9)
  602.  workspace.Sounds["Wilhelm Scream"]:Play()
  603.  wait(2)
  604.  plr:Kick("congrats?")
  605. end
  606.  
  607. ReplicatedStorage.Events.cl_end.OnClientEvent:Connect(function()
  608.  endg()
  609. end)
  610.  
  611. function won()
  612.  ReplicatedStorage.Events.cl_won:FireServer()
  613.  TweenService:Create(GUI.Sanity.Bar,TweenInfo.new(1),{BackgroundTransparency = 1}):Play()
  614.  TweenService:Create(GUI.Sanity,TweenInfo.new(1),{BackgroundTransparency = 1}):Play()
  615.  TweenService:Create(GUI.Sanity.TextLabel,TweenInfo.new(1),{TextTransparency = 1}):Play()
  616.  TweenService:Create(GUI.Sanity.UIStroke,TweenInfo.new(1),{Thickness = 0}):Play()
  617.  GUI.Sanity.ImageLabel.Visible = false
  618.  
  619.  TweenService:Create(GUI.energy.Bar,TweenInfo.new(1),{BackgroundTransparency = 1}):Play()
  620.  TweenService:Create(GUI.energy,TweenInfo.new(1),{BackgroundTransparency = 1}):Play()
  621.  TweenService:Create(GUI.energy.TextLabel,TweenInfo.new(1),{TextTransparency = 1}):Play()
  622.  TweenService:Create(GUI.energy.UIStroke,TweenInfo.new(1),{Thickness = 0}):Play()
  623.  GUI.energy.ImageLabel.Visible = false
  624.  
  625.   isw
  626.  TweenService:Create(workspace.Sounds["troll cut"],TweenInfo.new(0.5),{Volume = 0.2}):Play()
  627.  workspace.Sounds["troll cut"]:Play()
  628.  TweenService:Create(GUI.WonScreen,TweenInfo.new(0.5),{BackgroundTransparency = 0}):Play()
  629.  wait(1)
  630.  TweenService:Create(GUI.WonScreen.TextLabel,TweenInfo.new(0.5),{TextTransparency = 0}):Play()
  631.  GUI.WonScreen.TextLabel.Position -= UDim2.new(0,0,0,100)
  632.  wait(0.3)
  633.   TweenService:Create(GUI.WonScreen.TextLabel,TweenInfo.new(2,Enum.EasingStyle.Back,Enum.EasingDirection.Out),{Positi + UDim2.new(0,0,0,100) }):Play()
  634.  wait(1.5)
  635.  workspace.Sounds.clock:Play()
  636.  TweenService:Create(GUI.WonScreen.am,TweenInfo.new(0.5),{TextTransparency = 0}):Play()
  637.  TweenService:Create(GUI.WonScreen.am,TweenInfo.new(0.5),{TextColor3 = Color3.fromRGB(255, 255, 255)}):Play()
  638.  wait(4)
  639.  workspace.Sounds.clock:Play()
  640.  wait(4)
  641.  workspace.Sounds.clock:Play()
  642.  TweenService:Create(workspace.Sounds.clock,TweenInfo.new(3),{Volume = 0}):Play()
  643.  TweenService:Create(GUI.WonScreen,TweenInfo.new(4),{BackgroundTransparency = 1}):Play()
  644.  TweenService:Create(GUI.WonScreen.TextLabel,TweenInfo.new(4),{TextTransparency = 1}):Play()
  645.  TweenService:Create(GUI.WonScreen.am,TweenInfo.new(4),{TextTransparency = 1}):Play()
  646.  
  647.  newObjective(Obectives,"phone","answer the phone")
  648.  wait(3)
  649.  TweenService:Create(workspace.Sounds["troll cut"],TweenInfo.new(3),{Volume = 0}):Play()
  650.  InCams = false
  651.  Hide(false)
  652. end
  653.  
  654. ReplicatedStorage.Events.sv_won.OnClientEvent:Connect(function()
  655.  won()
  656. end)
  657.  
  658. local gldbcm = false
  659.  
  660. game["Run Service"].RenderStepped:Connect(function()
  661.  
  662.  light2.Enabled = not workspace.LightsOn.Value
  663.  
  664.  if (not camandb and camanSpawned == false) then
  665.   camandb = true
  666.   camanSpawned = true
  667.  
  668.   if (not camanpart) then
  669.    camanpart = ReplicatedStorage.Storage:WaitForChild("CameraScremer")
  670.   end
  671.   local random = math.random(1,#workspace.Cams:GetChildren())
  672.   camanCurCam = workspace.Cams:GetChildren()[random]
  673.   camanpart.Parent = workspace
  674.   camanCurCamID = random
  675.  
  676.   if (camanpart and camanCurCam) then
  677.    camanpart.CFrame = camanCurCam.CFrame
  678.    camanpart.Position += camanpart.CFrame.LookVector * 1.5 +camanpart.CFrame.RightVector * 2.7
  679.    camanpart.CFrame = CFrame.lookAt(camanpart.Position,camanCurCam.Position) * CFrame.Angles(0,math.rad(-90),0)
  680.   end
  681.   wait(math.random(40,60))
  682.  
  683.   camandb = false
  684.  
  685.  
  686.  end
  687.  
  688.  
  689.  GUI.Minigame.Visible = inMinigame
  690.  GUI.Minigame.TextLabel.Text = string.sub(tostring(MinigameValue3),1,3).."/2"
  691.  if (inMinigame and MinigameValue < MinigameValue2 + 0.12 and MinigameValue > MinigameValue2 - 0.12) then
  692.  
  693.   MinigameValue3 += 0.01
  694.   if (MinigameEvent and MinigameValue3 > 2) then
  695.    MinigameEvent:FireServer()
  696.    minigame(MinigameEvent,false)
  697.   end
  698.  end
  699.  
  700.  --Torso.LocalTransparencyModifier = 0
  701.  if (drinking) then
  702.   Char:WaitForChild('Right Arm').LocalTransparencyModifier = 0
  703.  else
  704.   Char:WaitForChild('Right Arm').LocalTransparencyModifier = 1
  705.  end
  706.  
  707.  if (curecup) then
  708.   curecup.LocalTransparencyModifier = 0
  709.  
  710.  end
  711.  
  712.  
  713.  
  714.  if (workspace.LightsOn.Value == false) then
  715.   san -= 0.03
  716.  end
  717.  
  718.  
  719.  --Char:WaitForChild('Right Arm').LocalTransparencyModifier = 0
  720.  --Char:WaitForChild('Left Arm').LocalTransparencyModifier = 0
  721.  --Char:WaitForChild('Right Leg').LocalTransparencyModifier = 0
  722.  --Char:WaitForChild('Left Leg').LocalTransparencyModifier = 0
  723.  
  724.  if (ene  < 30) then
  725.  
  726.   TweenService:Create(Cam,TweenInfo.new(6),{FieldOfView = 50} ):Play()
  727.   Values.slowdown.Value = 4
  728.   Values.BlackScreenTransparency.Value = 0
  729.  else
  730.   TweenService:Create(Cam,TweenInfo.new(4),{FieldOfView = 70} ):Play()
  731.   Values.slowdown.Value = 0
  732.  end
  733.  
  734.  if (ene < 50 and coffetip) then
  735.   coffetip = false
  736.   GUI.coffetip.Visible = true
  737.   wait(3)
  738.   GUI.coffetip.Visible = false
  739.  end
  740.  
  741.  LightPart.CFrame = Cam.CFrame
  742.  LightPart.Anchored = true
  743.  LightPart.Transparency = 1
  744.  LightPart.CanCollide = false
  745.  LightPart.CanQuery = false
  746.  
  747.  GUI.readyornot.ImageLabel.Rotation += 180
  748.  
  749.   GUI.Minigame.Plrpos.Positi 0,MinigameValue,0)
  750.   GUI.Minigame.endpos.Positi 0,MinigameValue2,0)
  751.  
  752.  Light.Shadows = true
  753.  Light.Range = 60
  754.  Light.Brightness = 0.13
  755.  
  756.   sanHead.Positi + Cam.CFrame.LookVector * sanhdlen
  757.  sanHead.CFrame = CFrame.lookAt(sanHead.Position,Cam.CFrame.Position)
  758.  
  759.  if (san < 10) then
  760.   Scremer()
  761.  end
  762.  
  763.  if UI:IsKeyDown(Enum.KeyCode.F) then
  764.   minigame(MinigameEvent,false)
  765.  end
  766.  
  767.  if (san < lowsan) then
  768.   TweenService:Create(sounds.LowSanityEffects.loop2,TweenInfo.new(8),{Volume = 1}):Play()
  769.   TweenService:Create(sounds.LowSanityEffects.loop,TweenInfo.new(8),{Volume = 0.1}):Play()
  770.   Cam.CFrame *= CFrame.Angles(math.rad(math.random(-1,1) / 7),math.rad(math.random(-1,1) / 7),0)
  771.   if (not killed) then
  772.     game.Lighting.ColorCorrection.C / 10
  773.   end
  774.   TweenService:Create(sounds.LowSanityEffects.breathing,TweenInfo.new(7),{Volume = 0.3}):Play()
  775.  else
  776.   TweenService:Create(sounds.LowSanityEffects.loop2,TweenInfo.new(3),{Volume = 0}):Play()
  777.   if (not killed) then
  778.     TweenService:Create(game.Lighting.ColorCorrection,TweenInfo.new(8),{C
  779.   end
  780.   TweenService:Create(sounds.LowSanityEffects.loop,TweenInfo.new(3),{Volume = 0}):Play()
  781.   TweenService:Create(sounds.LowSanityEffects.breathing,TweenInfo.new(3),{Volume = 0}):Play()
  782.  end
  783.  
  784.  TweenService:Create(GUI.Sanity.Bar,TweenInfo.new(0.1),{Size = UDim2.new(1,0,san/100,0)}):Play()
  785.  TweenService:Create(GUI.energy.Bar,TweenInfo.new(0.1),{Size = UDim2.new(1,0,ene/100,0)}):Play()
  786.  
  787.  if (hiden and not iswon) then
  788.   GUI.Unhiged.Visible = true
  789.   GUI.Unhiged.EXIT.Modal = true
  790.   san -= 0.02
  791.  else
  792.   GUI.Unhiged.EXIT.Modal = false
  793.   GUI.Unhiged.Visible = false
  794.  end
  795.  
  796.  if (MinigameValue < 0.9) then
  797.   MinigameValue += 0.1
  798.  end
  799.  
  800.  if (UI:IsKeyDown(Enum.KeyCode.Space) and MinigameValue > 0.12) then
  801.   MinigameValue -= 0.12
  802.  end
  803.  
  804.  if (ene > 0 and not iswon and str) then
  805.   ene -= 0.005
  806.  end
  807.  
  808.  GUI.readyornot.playercount.Text = workspace.playersready.Value.."/"..#game.Players:GetPlayers()
  809.  
  810.  if (CheckForInstances()) then
  811.  
  812.   if (not vhslinedb) then
  813.    vhslinedb = true
  814.    GUI.vhsline.Position = UDim2.new(0,0,-2,0)
  815.    wait(10)
  816.    TweenService:Create(GUI.vhsline,TweenInfo.new(10),{Position = UDim2.new(0,0,2,0)}):Play()
  817.    vhslinedb = false
  818.   end
  819.  
  820.   local curtime = tick()
  821.  
  822.   local Yboble = 0
  823.   local VHSboble = math.cos(curtime * 20) * .3
  824.   local CameraSway = math.sin(curtime * 0.3) * .25
  825.  
  826.   local MouseVc = UI:GetMouseDelta()
  827.  
  828.   plr.CameraMode = Enum.CameraMode.LockFirstPerson
  829.  
  830.   if (InCams) then
  831.    
  832.    if (not ComputerAnim) then
  833.     ComputerAnim = Humanoid:LoadAnimation(script.compAnim)
  834.    end
  835.    
  836.    if (ComputerAnim and ComputerAnim.IsPlaying == false) then
  837.     ComputerAnim:Play()
  838.    end
  839.    
  840.    GUI.Cameffects.Visible = true
  841.    
  842.    if (Wifi.Value >= 1 and Wifi.Value <= 2) then
  843.     GUI.Cameffects.absent.Visible = false
  844.     GUI.Cameffects.okay.Visible = false
  845.     GUI.Cameffects.okay2.Visible = false
  846.    
  847.     GUI.CamerasControl.wifisttus.Text = "CONNECTION Lv | ?"
  848.    
  849.    elseif (Wifi.Value >= 2 and Wifi.Value <= 3) then
  850.     GUI.Cameffects.okay.Visible = true
  851.     GUI.Cameffects.okay2.Visible = true
  852.     GUI.Cameffects.okay.ImageTransparency = 0.9
  853.     GUI.Cameffects.okay2.ImageTransparency = 0.9
  854.     GUI.CamerasControl.wifisttus.Text = "CONNECTION Lv | ?"
  855.    
  856.    
  857.    elseif (Wifi.Value >= 3  and Wifi.Value <= 4) then
  858.    
  859.     GUI.CamerasControl.wifisttus.Text = "CONNECTION Lv | ?"
  860.     GUI.Cameffects.okay.ImageTransparency = 0.5
  861.     GUI.Cameffects.okay2.ImageTransparency = 0.6
  862.     GUI.Cameffects.absent.Visible = false
  863.     if (not gldbcm) then
  864.      gldbcm = true
  865.      GUI.Cameffects.bad.BackgroundTransparency = 0
  866.      wait(1)
  867.      GUI.Cameffects.bad.BackgroundTransparency = 1
  868.      wait(math.random(1,2))
  869.      gldbcm = false
  870.     end
  871.    elseif (Wifi.Value >= 4 or Wifi.Value > 3.9) then
  872.    
  873.     GUI.CamerasControl.wifisttus.Text = "CONNECTION Lv | ⬛"
  874.     GUI.Cameffects.absent.Visible = true
  875.     if (not gldbcm) then
  876.      gldbcm = true
  877.      workspace.Sounds.Error:Play()
  878.      wait(1)
  879.      workspace.Sounds.Error:Play()
  880.      wait(1)
  881.      gldbcm = false
  882.     end
  883.    end
  884.    
  885.    game.Lighting.ColorCorrection.Saturation = -1
  886.    GUI.VHS.Visible = true
  887.    Humanoid.WalkSpeed = 0
  888.    GUI.CamerasControl.Visible = true
  889.    local roomname = workspace.Cams:GetChildren()[CurCamId]:GetAttribute("RoomName") or "[REDACTED]"
  890.    GUI.CamerasControl.TextLabel.Text = roomname.." | "..CurCamId
  891.    GUI.Cameras.Visible = true
  892.    local CF = workspace.Cams:GetChildren()[CurCamId].CFrame or CFrame.new(0,0,0)
  893.    GUI.BlackScreen.Visible = true
  894.    Cam.CFrame = CF * CFrame.Angles(0,CameraSway,0)
  895.    Cam.CameraType = Enum.CameraType.Scriptable
  896.    workspace.Sounds["Amp Static Hum 1 (SFX)"].Volume = 0.014
  897.    Light.Enabled = true
  898.    if (ComputerPart) then
  899.     bg.CFrame = CFrame.lookAt(Torso.Position,ComputerPart.Position)
  900.    end
  901.    bg.MaxTorque = Vector3.new(0,1000,0)
  902.    GUI.vhsline.Visible = true
  903.    
  904.    
  905.    
  906.    
  907.    
  908.    
  909.    if (san > 0 and not iswon) then
  910.     san -= 0.02
  911.    end
  912.    Humanoid.AutoRotate = false
  913.   else
  914.    GUI.Cameffects.Visible = false
  915.  
  916.    if (ComputerAnim and ComputerAnim.IsPlaying == true) then
  917.     ComputerAnim:Stop()
  918.    end
  919.    GUI.vhsline.Visible = false
  920.    game.Lighting.ColorCorrection.Saturation = 0
  921.    Light.Enabled = false
  922.    GUI.Cameras.Visible = false
  923.    if (not hiden and not cs) then
  924.     Cam.CameraType = Enum.CameraType.Custom
  925.    end
  926.    bg.MaxTorque = Vector3.new(0,0,0)
  927.    Humanoid.WalkSpeed = Values.WalkSpeed.Value + Values.RunSpeed.Value - Values.slowdown.Value
  928.    GUI.VHS.Visible = false
  929.    GUI.CamerasControl.Visible = false
  930.    GUI.BlackScreen.Visible = false
  931.    workspace.Sounds["Amp Static Hum 1 (SFX)"].Volume = 0
  932.    
  933.    if (san <99 and not hiden) then
  934.     san += 0.03
  935.    end
  936.    Humanoid.AutoRotate = true
  937.   end
  938.  
  939.   GUI.Loading.ImageLabel.Rotation += 12
  940.  
  941.   GUI.BlackScreen.ImageLabel1.Rotation += 180
  942.  
  943.   Cam.CFrame *= Values.Bobble.Value
  944.  
  945.   GUI.VHS.ImageLabel.Rotation += 180
  946.   GUI.VHS.ImageLabel1.Rotation += 180
  947.  
  948.    GUI.readyornot.ImageLabel2.Positi
  949.   GUI.readyornot.ImageLabel2.Rotation += 180
  950.   GUI.readyornot.ImageLabel2.Size = UDim2.new(1,math.random(-30,30),1,math.random(-30,30))
  951.  
  952.   Humanoid.Jump = false
  953.  
  954.   for i ,v in ipairs(GUI.Cameras:GetChildren()) do
  955.    if (v.Name == workspace.Cams:GetChildren()[CurCamId]:GetAttribute("RoomName")) then
  956.     TweenService:Create(v,TweenInfo.new(0.13),{BackgroundTransparency = 0.7}):Play()
  957.    else
  958.     if (v:IsA("Frame")) then
  959.      TweenService:Create(v,TweenInfo.new(0.1),{BackgroundTransparency = 1}):Play()
  960.     end
  961.    
  962.    end
  963.   end
  964.  
  965.   Values.BlackScreenTransparency.Value -= math.rad(MouseVc.Magnitude) / 100
  966.  
  967.   TweenService:Create(GUI.Circle,TweenInfo.new(0.3),{ImageTransparency = Values.BlackScreenTransparency.Value}):Play()
  968.  
  969.   if (not killed) then
  970.    UI.MouseDeltaSensitivity = 0.5 + MouseVc.Magnitude / 70
  971.   end
  972.  
  973.  
  974.   local vec = Cam.CFrame:VectorToObjectSpace(Char:WaitForChild("HumanoidRootPart").Velocity)
  975.  
  976.  
  977.   Events.Server:FireServer(Torso,Head,NeckC0,RootJointC0,Neck,RootJoint,Mouse.Hit,Lleg,Rleg,LlegC0,RlegC0,hiden,HidePart or workspace.HidePart,oldcampos or workspace.HidePart.CFrame * CFrame.new(0,3,0))
  978.  
  979.   local LookingSway = CFrame.Angles(0,0,(MouseVc.X / 100) * MouseVc.Magnitude / 170)
  980.   local wave2 = math.sin(curtime * 20 + Torso.Velocity.Magnitude) * .02
  981.   if (Humanoid.MoveDirection.Magnitude > 0.1 and not hiden and not InCams) then
  982.    if (ene > 0 and not iswon) then
  983.     ene -= 0.01
  984.    end
  985.    
  986.    if (UI:IsKeyDown(Enum.KeyCode.LeftShift) and ene > 10) then
  987.     Values.RunSpeed.Value = 4
  988.     ene -= 0.09
  989.    
  990.    else
  991.    
  992.     Values.RunSpeed.Value = 0
  993.    end
  994.    
  995.    TweenService:Create(Values.Bobble,TweenInfo.new(0.6),{Value = CFrame.new(0,VHSboble,0)* LookingSway * CFrame.Angles(0,0,wave2 + -math.rad(vec.X))}):Play()
  996.   else
  997.    TweenService:Create(Values.Bobble,TweenInfo.new(0.6),{Value = CFrame.new(0,0,0) * LookingSway}):Play()
  998.   end
  999.  
  1000.  
  1001.   if (watchingTip) then
  1002.    if (TipPart) then
  1003.     TipPart.Position = Cam.CFrame.Position + Cam.CFrame.LookVector *1.2
  1004.     TipPart.CFrame = CFrame.lookAt(TipPart.Position,Cam.CFrame.p) * CFrame.Angles(-math.rad(90),math.rad(90),0)
  1005.     GUI.tiptip.Visible = true
  1006.    end
  1007.   else
  1008.    
  1009.    GUI.tiptip.Visible = false
  1010.   end
  1011.  
  1012.  
  1013.  else
  1014.  
  1015.  end
  1016. end)
  1017.  
  1018. Values.BlackScreenTransparency.Changed:Connect(function()
  1019.  TweenService:Create(Values.BlackScreenTransparency,TweenInfo.new(0.5),{Value = 0.6}):Play()
  1020. end)
  1021.  
  1022. ReplicatedStorage.Events.Glitch.OnClientEvent:Connect(function()
  1023.  glitch()
  1024. end)
  1025.  
  1026.  
  1027.  
  1028. ReplicatedStorage.Events.Cams.OnClientEvent:Connect(function(part:BasePart)
  1029.  if (not InCams and not iswon) then
  1030.   prompt.Enabled = false
  1031.   oldcampos2 = Cam.CFrame
  1032.   repeat
  1033.    Cam.CameraType = Enum.CameraType.Scriptable
  1034.   until Cam.CameraType == Enum.CameraType.Scriptable
  1035.  
  1036.   TweenService:Create(Cam,TweenInfo.new(1),{CFrame =CFrame.new( part.Position + part.CFrame.LookVector * 2)}):Play()
  1037.  
  1038.   wait(0.9)
  1039.   InCams = true
  1040.   ComputerPart = part
  1041.   ReplicatedStorage.Events.cl_joinedcams:FireServer()
  1042.   glitch()
  1043.  
  1044.  end
  1045. end)
  1046.  
  1047. wait(2)
  1048.  
  1049.  
  1050. GUI["UI Click"]:Play()
  1051. wait(1)
  1052. GUI["UI Click"]:Play()
  1053. GUI.readyornot.TextButton.Visible = true
  1054.  
  1055. GUI.readyornot.TextButton.Modal = true
  1056.  
  1057. wait(1)
  1058. GUI.readyornot.playercount.Visible = true
  1059. GUI["UI Click"]:Play()
  1060.  
  1061. GUI.readyornot.TextButton.MouseButton1Down:Connect(function()
  1062.  ReplicatedStorage.Events.cl_ready:FireServer()
  1063.  GUI.readyornot.TextButton.Visible = false
  1064.  GUI["UI Click"]:Play()
  1065.  wait(1)
  1066.  GUI["UI Click"]:Play()
  1067.  GUI.readyornot.TextLabel.Visible = false
  1068.  
  1069.  GUI.readyornot.TextButton.Modal = false
  1070.  
  1071.  wait(1)
  1072.  
  1073.  GUI.readyornot.playercount.Visible = false
  1074.  GUI["UI Click"]:Play()
  1075.  
  1076.  
  1077.  
  1078. end)
  1079.  
  1080. ReplicatedStorage.Events.sv_gamestart.OnClientEvent:Connect(function()
  1081.  wait(2.4)
  1082.  GUI.readyornot.Visible = false
  1083.  GUI.BlackScreen2.BackgroundTransparency = 0
  1084.  TweenService:Create(GUI.BlackScreen2,TweenInfo.new(2),{BackgroundTransparency = 1}):Play()
  1085.  wait(1)
  1086.  str = true
  1087. end)
  1088.  
  1089. ReplicatedStorage.Events.cl_tip.OnClientEvent:Connect(function(part:BasePart)
  1090.  watchingTip = true
  1091.  TipPart = part:Clone()
  1092.  TipPart.Parent = workspace
  1093.  prompt.Enabled = false
  1094.  workspace.Sounds.Paper:Play()
  1095. end)
  1096.  
  1097. Mouse.Button1Down:Connect(function()
  1098.  if (watchingTip == true) then
  1099.   watchingTip = false
  1100.   TipPart:Destroy()
  1101.   prompt.Enabled = true
  1102.   workspace.Sounds.Paper:Play()
  1103.  end
  1104.  
  1105. end)
  1106.  
  1107. ReplicatedStorage.Events.cl_Minigame.OnClientEvent:Connect(function(event,sound)
  1108.  if (not inMinigame) then
  1109.   MinigameSound = sound:Clone()
  1110.   MinigameSound.Parent = workspace
  1111.   minigame(event,true)
  1112.  end
  1113. end)