local H=script:FindFirstAncestor("\077\097\105\110\085\073")local W=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local A=game.Players.LocalPlayer return function(T,y)if T.dead then return end if A.Character:GetAttribute("\072\105\100\105\110\103")==false then return end local G=game.Lighting.Sanity:Clone()G.Name="\076\105\118\101\083\097\110\105\116\121"G.Enabled=true G.Parent=game.Lighting local j=H.SanityVignette:Clone()j.Name="\076\105\118\101\083\097\110\105\116\121\086\105\103\110\101\116\116\101"j.Visible=true j.Parent=H local B=game.SoundService.Main.SanityEqualizer:Clone()B.Name="\083\097\110\105\116\121\069\113\117\097\108\105\122\101\114\076\105\118\101"B.Enabled=true B.Parent=game.SoundService.Main local V=script.Heartbeat:Clone()V.Name="\076\105\118\101\072\101\097\114\116\098\101\097\116"V.Parent=script V:Play()local d=script.Whispers:Clone()d.Name="\076\105\118\101\087\104\105\115\112\101\114\115"d.Parent=script d:Play()local p=script.Static:Clone()p.Name="\076\105\118\101\083\116\097\116\105\099"p.Parent=script p:Play();(W:Create(G,TweenInfo.new(y,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut),{Saturation=-0.8;Contrast=.3;TintColor=Color3.new(1,.9,.92)})):Play();(W:Create(j,TweenInfo.new(y*.66,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{ImageTransparency=0;Size=UDim2.new(1.2,0,1.2,0)})):Play();(W:Create(j.DamageVignette,TweenInfo.new(y,Enum.EasingStyle.Quart,Enum.EasingDirection.InOut),{ImageTransparency=0})):Play();(W:Create(B,TweenInfo.new(y,Enum.EasingStyle.Quart,Enum.EasingDirection.InOut),{LowGain=0;MidGain=-20;HighGain=-40})):Play();(W:Create(V,TweenInfo.new(y,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{PlaybackSpeed=2})):Play();(W:Create(d,TweenInfo.new(y,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{PlaybackSpeed=2})):Play();(W:Create(V,TweenInfo.new(y,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Volume=1.6})):Play();(W:Create(d,TweenInfo.new(y,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Volume=1.6})):Play()local s=T.camShaker:StartShake(1,16,y,Vector3.new(0,0,0))local R=T.camShaker:StartShake(8,1,y,Vector3.new(0,0,0))local E=tick()+y local X=tick()+y/2 local n=true local P=H.Jumpscare_Hide task.spawn(function()pcall(function()while n do task.wait()local H=math.clamp((V.PlaybackLoudness*V.Volume)/1000,0,.8)j.DamageVignette.ImageColor3=Color3.new(.1+H,H/4,H/4)P.Static.Position=UDim2.new(math.random(0,100)/100,0,math.random(0,100)/100,0)P.Static.Rotation=math.random(0,1)*180 P.Static.ImageTransparency=(1-H)-math.clamp((d.PlaybackLoudness*d.Volume)/1000,0,.8)end end)end)P.Visible=true task.spawn(function()for H=1,10000,1 do task.wait(.033333333333333)if X<=tick()then if math.random(1,20)==5 then P.Overlay.Position=UDim2.new(math.random(30,70)/100,0,math.random(30,70)/100,0)P.Overlay.Visible=true p.Volume=.12 else P.Overlay.Visible=false p.Volume=0 end end if E<=tick()then end if T.camlock==nil then break end if T.dead then break end if A.Character:GetAttribute("\072\105\100\105\110\103")==false then break end end end)task.wait(10)A.Character:SetAttribute("\072\105\100\101\083\105\099\107\110\101\115\115",true)T.camShaker:ShakeOnce(72,22,0,2,Vector3.new(0,0,0))T.camShaker:ShakeOnce(3,6,0,18,Vector3.new(0,0,0))T.camShaker:ShakeOnce(12,.5,0,18,Vector3.new(0,0,0))P.Overlay.Visible=false p.Volume=0;(W:Create(G,TweenInfo.new(.06,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,true),{Brightness=.5})):Play()script.Scare:Play()wait(2);(W:Create(G,TweenInfo.new(15,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{Saturation=0,Contrast=0,TintColor=Color3.new(1,1,1)})):Play();(W:Create(j,TweenInfo.new(15,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{ImageTransparency=1,Size=UDim2.new(1.6,0,1.6,0)})):Play();(W:Create(j.DamageVignette,TweenInfo.new(15,Enum.EasingStyle.Quart,Enum.EasingDirection.In),{ImageTransparency=1})):Play();(W:Create(B,TweenInfo.new(15,Enum.EasingStyle.Sine,Enum.EasingDirection.In),{LowGain=0;MidGain=0;HighGain=0})):Play();(W:Create(V,TweenInfo.new(15,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{PlaybackSpeed=1.2})):Play();(W:Create(d,TweenInfo.new(15,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{PlaybackSpeed=1})):Play();(W:Create(V,TweenInfo.new(15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Volume=0})):Play();(W:Create(d,TweenInfo.new(15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Volume=0})):Play()wait(15)n=false G:Destroy()j:Destroy()B:Destroy()V:Destroy()d:Destroy()p:Destroy()P.Visible=false A.Character:SetAttribute("\072\105\100\101\083\105\099\107\110\101\115\115",false)end
-- Decompiled with the Synapse X Luau decompiler.

local u1 = script:FindFirstAncestor("MainUI")
local l__TweenService__2 = game:GetService("TweenService")
local l__LocalPlayer__3 = game.Players.LocalPlayer
return function(p1, p2)
	if p1.dead then
		return
	end
	if l__LocalPlayer__3.Character:GetAttribute("Hiding") == false then
		return
	end
	local v1 = game.Lighting.Sanity:Clone()
	v1.Name = "LiveSanity"
	v1.Enabled = true
	v1.Parent = game.Lighting
	local v2 = u1.SanityVignette:Clone()
	v2.Name = "LiveSanityVignette"
	v2.Visible = true
	v2.Parent = u1
	local v3 = game.SoundService.Main.SanityEqualizer:Clone()
	v3.Name = "SanityEqualizerLive"
	v3.Enabled = true
	v3.Parent = game.SoundService.Main
	local v4 = script.Heartbeat:Clone()
	v4.Name = "LiveHeartbeat"
	v4.Parent = script
	v4:Play()
	local v5 = script.Whispers:Clone()
	v5.Name = "LiveWhispers"
	v5.Parent = script
	v5:Play()
	local v6 = script.Static:Clone()
	v6.Name = "LiveStatic"
	v6.Parent = script
	v6:Play()
	l__TweenService__2
		:Create(v1, TweenInfo.new(p2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {
			Saturation = -0.8,
			Contrast = 0.3,
			TintColor = Color3.new(1, 0.9, 0.92),
		})
		:Play()
	l__TweenService__2
		:Create(v2, TweenInfo.new(p2 * 0.66, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
			ImageTransparency = 0,
			Size = UDim2.new(1.2, 0, 1.2, 0),
		})
		:Play()
	l__TweenService__2
		:Create(v2.DamageVignette, TweenInfo.new(p2, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
			ImageTransparency = 0,
		})
		:Play()
	l__TweenService__2
		:Create(v3, TweenInfo.new(p2, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut), {
			LowGain = 0,
			MidGain = -20,
			HighGain = -40,
		})
		:Play()
	l__TweenService__2
		:Create(v4, TweenInfo.new(p2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
			PlaybackSpeed = 2,
		})
		:Play()
	l__TweenService__2
		:Create(v5, TweenInfo.new(p2, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
			PlaybackSpeed = 2,
		})
		:Play()
	l__TweenService__2
		:Create(v4, TweenInfo.new(p2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
			Volume = 1.6,
		})
		:Play()
	l__TweenService__2
		:Create(v5, TweenInfo.new(p2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
			Volume = 1.6,
		})
		:Play()
	local v7 = p1.camShaker:StartShake(1, 16, p2, Vector3.new(0, 0, 0))
	local v8 = p1.camShaker:StartShake(8, 1, p2, Vector3.new(0, 0, 0))
	local v9 = tick() + p2
	local v10 = tick() + p2 / 2
	local u4 = true
	local l__Jumpscare_Hide__5 = u1.Jumpscare_Hide
	task.spawn(function()
		pcall(function()
			while u4 do
				task.wait()
				local v11 = math.clamp(v4.PlaybackLoudness * v4.Volume / 1000, 0, 0.8)
				v2.DamageVignette.ImageColor3 = Color3.new(0.1 + v11, v11 / 4, v11 / 4)
				l__Jumpscare_Hide__5.Static.Position =
					UDim2.new(math.random(0, 100) / 100, 0, math.random(0, 100) / 100, 0)
				l__Jumpscare_Hide__5.Static.Rotation = math.random(0, 1) * 180
				l__Jumpscare_Hide__5.Static.ImageTransparency = 1
					- v11
					- math.clamp(v5.PlaybackLoudness * v5.Volume / 1000, 0, 0.8)
			end
		end)
	end)
	l__Jumpscare_Hide__5.Visible = true
	task.spawn(function()
		for v12 = 1, 10000 do
			task.wait(0.03333333333333333)
			if v10 <= tick() then
				if math.random(1, 20) == 5 then
					l__Jumpscare_Hide__5.Overlay.Position =
						UDim2.new(math.random(30, 70) / 100, 0, math.random(30, 70) / 100, 0)
					l__Jumpscare_Hide__5.Overlay.Visible = true
					v6.Volume = 0.12
				else
					l__Jumpscare_Hide__5.Overlay.Visible = false
					v6.Volume = 0
				end
			end
			if v9 <= tick() then
			end
			if p1.camlock == nil then
				break
			end
			if p1.dead then
				break
			end
			if l__LocalPlayer__3.Character:GetAttribute("Hiding") == false then
				break
			end
		end
	end)
	--v7:StartFadeOut(0.3);
	--v8:StartFadeOut(0.3);
	task.wait(10)
	--if p1.dead == false then
	l__LocalPlayer__3.Character:SetAttribute("HideSickness", true)
	p1.camShaker:ShakeOnce(72, 22, 0, 2, Vector3.new(0, 0, 0))
	p1.camShaker:ShakeOnce(3, 6, 0, 18, Vector3.new(0, 0, 0))
	p1.camShaker:ShakeOnce(12, 0.5, 0, 18, Vector3.new(0, 0, 0))
	l__Jumpscare_Hide__5.Overlay.Visible = false
	v6.Volume = 0
	l__TweenService__2
		:Create(v1, TweenInfo.new(0.06, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, true), {
			Brightness = 0.5,
		})
		:Play()
	script.Scare:Play()
	wait(2)
	l__TweenService__2
		:Create(v1, TweenInfo.new(15, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
			Saturation = 0,
			Contrast = 0,
			TintColor = Color3.new(1, 1, 1),
		})
		:Play()
	l__TweenService__2
		:Create(v2, TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
			ImageTransparency = 1,
			Size = UDim2.new(1.6, 0, 1.6, 0),
		})
		:Play()
	l__TweenService__2
		:Create(v2.DamageVignette, TweenInfo.new(15, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {
			ImageTransparency = 1,
		})
		:Play()
	l__TweenService__2
		:Create(v3, TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.In), {
			LowGain = 0,
			MidGain = 0,
			HighGain = 0,
		})
		:Play()
	l__TweenService__2
		:Create(v4, TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
			PlaybackSpeed = 1.2,
		})
		:Play()
	l__TweenService__2
		:Create(v5, TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
			PlaybackSpeed = 1,
		})
		:Play()
	l__TweenService__2
		:Create(v4, TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
			Volume = 0,
		})
		:Play()
	l__TweenService__2
		:Create(v5, TweenInfo.new(15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
			Volume = 0,
		})
		:Play()
	wait(15)
	--[[else
		v7:StartFadeOut(0.3);
		v8:StartFadeOut(0.3);
	end;]]
	u4 = false
	v1:Destroy()
	v2:Destroy()
	v3:Destroy()
	v4:Destroy()
	v5:Destroy()
	v6:Destroy()
	l__Jumpscare_Hide__5.Visible = false
	l__LocalPlayer__3.Character:SetAttribute("HideSickness", false)
end
