local N=script:FindFirstAncestor("\077\097\105\110\085\073")local X=game.Players.LocalPlayer local Y=(require((X:WaitForChild("\080\108\097\121\101\114\083\099\114\105\112\116\115")):WaitForChild("\080\108\097\121\101\114\077\111\100\117\108\101"))):GetControls()local Q=game["\082\117\110 \083\101\114\118\105\099\101"]local w=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local R=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local b=require(script:WaitForChild("\076\105\103\104\116\110\105\110\103"))local A=(game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\066\114\105\099\107\115")local F=require(script.Parent)local M=require(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\067\108\105\101\110\116\077\111\100\117\108\101\115")):WaitForChild("\077\111\100\117\108\101\095\069\118\101\110\116\115"))M.init(F)local g=Vector3.new()local P=workspace game.SoundService.Main.Volume=1;(A:WaitForChild("\080\097\100\108\111\099\107\072\105\110\116")).OnClientEvent:Connect(function(Y,Q,w)local R=N.Parent.PermUI.Hints R.Visible=true if not Y or not Q then R.Visible=false for N,X in pairs(R:GetChildren())do if X.Name=="\073\099\111\110"then X:Destroy()end end return end local b=R.Template:Clone()b.Name="\073\099\111\110"b.Visible=true b.ImageRectOffset=Vector2.new(50*Y,0)b.TextLabel.Text=Q if w and w~=X.UserId then b.User.Visible=true b.User.Image="\114\098\120\116\104\117\109\098\058\047\047\116\121\112\101\061\065\118\097\116\097\114\072\101\097\100\083\104\111\116\038\105\100\061"..(w.."\038\119\061\052\056\038\104\061\052\056")end b.Parent=R end);(A:WaitForChild("\077\111\116\111\114\082\101\112\108\105\099\097\116\105\111\110")).OnClientEvent:Connect(function(N,X,Y,Q)if not N or not N:FindFirstChild("\072\117\109\097\110\111\105\100")or not(N:FindFirstChild("\072\117\109\097\110\111\105\100")):GetAttribute("\065\112\112\101\097\114\097\110\099\101\070\105\110\097\108")then return end local w=CFrame.new(0,.22,0,1,0,0,0,1,0,0,0,1)local b=CFrame.new(0,-1.1,0,1,0,0,0,1,0,0,0,1)local A=CFrame.new(0,.88,0,1,0,0,0,1,0,0,0,1)local M=CFrame.new(1,.62,0,1,0,0,0,1,0,0,0,1)local g=CFrame.new(-1,.62,0,1,0,0,0,1,0,0,0,1)if N and N:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")then local P=N:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116",.5)local c=N:FindFirstChild("\067\108\105\101\110\116\077\111\116\111\114\115")local E=(N:WaitForChild("\085\112\112\101\114\084\111\114\115\111",.5)):WaitForChild("\087\097\105\115\116",.5)local e=(N:WaitForChild("\072\101\097\100",.5)):WaitForChild("\078\101\099\107",.5)local o=(N:WaitForChild("\076\111\119\101\114\084\111\114\115\111",.5)):WaitForChild("\082\111\111\116",.5)local k=(N:WaitForChild("\082\105\103\104\116\085\112\112\101\114\065\114\109",.5)):WaitForChild("\082\105\103\104\116\083\104\111\117\108\100\101\114",.5)local s=(N:WaitForChild("\076\101\102\116\085\112\112\101\114\065\114\109",.5)):WaitForChild("\076\101\102\116\083\104\111\117\108\100\101\114",.5)local i=(o:WaitForChild("\067\086\097\108")).Value local O=(E:WaitForChild("\067\086\097\108")).Value local p=(e:WaitForChild("\067\086\097\108")).Value local B=(s:WaitForChild("\067\086\097\108")).Value local x=(k:WaitForChild("\067\086\097\108")).Value local f=b*CFrame.Angles(0,math.rad(X*-45),0)local U=((w*CFrame.Angles(math.rad(Y*.25),0,0))*CFrame.Angles(0,math.rad(X*45),0))*CFrame.Angles(0,0,math.rad(Q))local h=A*CFrame.Angles(math.rad(Y*.5),0,0)local W=g*CFrame.Angles(math.rad(Y*-0.025),0,0)local T=M*CFrame.Angles(math.rad(Y*-0.025),0,0)if not c then local X=Instance.new("\066\111\111\108\086\097\108\117\101")X.Name="\067\108\105\101\110\116\077\111\116\111\114\115"X.Parent=N end if N.Humanoid:GetAttribute("\083\116\117\110\110\101\100")==true then if P then E.Enabled=false e.Enabled=false o.Enabled=false k.Enabled=false s.Enabled=false return end else E.Enabled=true e.Enabled=true o.Enabled=true k.Enabled=true s.Enabled=true if P and(P.Position-F.cam.CFrame.p).Magnitude>100 then o.C0=f E.C0=U e.C0=h s.C0=W k.C0=T return end if P then local N={}local X={}local Y={}local Q={}local w={}N.C0=f X.C0=U Y.C0=h Q.C0=W w.C0=T;(R:Create(o,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),N)):Play();(R:Create(E,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),X)):Play();(R:Create(e,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),Y)):Play();(R:Create(k,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),w)):Play();(R:Create(s,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),Q)):Play()end end end end);(A:WaitForChild("\083\111\117\110\100\084\111\067\108\105\101\110\116")).OnClientEvent:Connect(function(N,X,Y,Q)if N and X then F.playaudio(N,X,Y,Q)end end)local c={};(A:WaitForChild("\085\115\101\069\110\101\109\121\077\111\100\117\108\101")).OnClientEvent:Connect(function(N,X,...)if not c[N]then c[N]=require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")).ClientModules.EntityModules:FindFirstChild(N))end c[N][X](F,...)end);(A:WaitForChild("\085\115\101\069\118\101\110\116\077\111\100\117\108\101")).OnClientEvent:Connect(function(N,...)M[N](...)end);(A:WaitForChild("\082\101\112\108\105\099\097\116\101\065\110\105\109\097\116\105\111\110")).OnClientEvent:Connect(function(N,X,Y,Q,w,b)local A=game.ReplicatedStorage.AnimationRoot:Clone()local M=N.Humanoid.Animator:LoadAnimation(A.Animation)A:SetPrimaryPartCFrame(N.PrimaryPart.CFrame)A.Parent=F.cam;(R:Create(A.PrimaryPart,TweenInfo.new(.3,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{CFrame=Y})):Play()local g=nil local P=A.AnimationController:LoadAnimation(X)X=N.Humanoid.Animator:LoadAnimation(X)local c=false if F.char==N then F.stopcam=true c=true end if w and(b and c)then b=w:LoadAnimation(b)g=w.Parent:FindFirstChild("\067\097\109\065\116\116\097\099\104",true)and g.WorldCFrame F.hideplayers=-1 end for N=1,1000,1 do if X.Length>0 then if b==nil then break end if b.Length>0 then break end end task.wait()end X:Play(0,1,1)M:Play(0,1,1)P:Play(0,1,1)if w and b then b:Play(0,1,1)end local E=N.PrimaryPart.CFrame local e=F.cam.CFrame local o=false local k=tick()task.spawn(function()for X=1,100000,1 do task.wait()if o then break end local Y=R:GetValue((tick()-k)*4,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)if g then Y=R:GetValue((tick()-k)/1.5,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut)end N.PrimaryPart.CFrame=N.PrimaryPart.CFrame:Lerp(A.LowerTorso.CFrame*CFrame.new(0,.96,0),Y)if c then local X if g then X=g else X=(((N.Head.CFrame*CFrame.new(0,.15,-0.25))*CFrame.Angles(math.rad(math.clamp(F.bobspring.p.Y,-80,80)),math.rad(math.clamp(F.bobspring.p.X,-80,80)),math.rad(math.clamp(F.bobspring.p.Z,-40,40))))*CFrame.Angles(0,math.rad(F.camlockedoffset[1]),0))*CFrame.Angles(math.rad(F.camlockedoffset[2]),0,0)end F.cam.CFrame=F.cam.CFrame:Lerp(X,Y)end end end)task.wait(X.Length-.1)o=true;(R:Create(N.PrimaryPart,TweenInfo.new(.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{CFrame=Q})):Play()X:AdjustWeight(.01)X:AdjustSpeed(.01)X:Stop(0)P:Stop(0)M:Stop(0)A:Destroy()if c then local N=tick()local X=F.cam.CFrame for Y=1,10000,1 do F.cam.CFrame=X:Lerp(F.basecamcf*F.csgo,R:GetValue((tick()-N)*4,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut))task.wait()if N+.25<=tick()then break end end F.stopcam=false F.crouching=false end end)spawn(function()while true do task.wait(.1)if P:FindFirstChild("\070\105\103\117\114\101\083\101\116\117\112",true)then local N=(P:FindFirstChild("\070\105\103\117\114\101\083\101\116\117\112",true)).FigureRagdoll local X=N.Parent local Y=0 local Q=N.Head.Click local w=N.Head.Growl local b={}for X,Y in pairs(N:GetDescendants())do if Y:IsA("\076\105\103\104\116")and Y.Name=="\066\108\105\115\116\101\114\076\105\103\104\116"then Y.Enabled=true Y.Brightness=0 table.insert(b,{Light=Y;Distance=N.Head.Position-Y.Parent.WorldPosition})end end local A=TweenInfo.new(.1,Enum.EasingStyle.Linear)for F=1,100000000,1 do wait(.1)if not N then break end if N.Parent~=X then break end local M=(Q.PlaybackLoudness+w.PlaybackLoudness)/60 if M~=Y then for N,X in b,nil do delay(X.Distance/2,function()(R:Create(X.Light,A,{Brightness=M})):Play()end)end end Y=M end end if P:FindFirstChild("\070\105\103\117\114\101\065\110\105\109\097\116\101\100\087\101\108\100\101\100",true)then local N=P:FindFirstChild("\070\105\103\117\114\101\065\110\105\109\097\116\101\100\087\101\108\100\101\100",true)local X=N.Parent local Y=0 local Q=N.Parent.Head.Click local w=N.Parent.Head.Growl local b={}for X,Y in pairs(N:GetDescendants())do if Y:IsA("\076\105\103\104\116")and Y.Name=="\066\108\105\115\116\101\114\076\105\103\104\116"then Y.Enabled=true Y.Brightness=0 table.insert(b,{Light=Y,Distance=N.Parent.Head.Position-Y.Parent.WorldPosition})end end local A=TweenInfo.new(.1,Enum.EasingStyle.Linear)for F=1,100000000,1 do wait(.1)if not N then break end if N.Parent~=X then break end local M=(Q.PlaybackLoudness+w.PlaybackLoudness)/90-.15 if M~=Y then for N,X in b,nil do delay(X.Distance/4,function()(R:Create(X.Light,A,{Brightness=M})):Play()end)end end Y=M end end end end)local E=false;(A:WaitForChild("\074\117\109\112\115\099\097\114\101")).OnClientEvent:Connect(function(X)if E==true then return end E=true N.MainFrame.Heartbeat.Visible=false if X=="\083\101\101\107"then F.deathtick=tick()+.5 if workspace:FindFirstChild("\083\101\101\107\077\111\118\105\110\103",true)then local N=workspace:FindFirstChild("\083\101\101\107\077\111\118\105\110\103",true)F.stopcam=true F.fovtarget=40 local X=tick()for Y=1,10000,1 do F.cam.CFrame=(F.basecamcf*F.csgo):Lerp(N.PrimaryPart.CamAttach.WorldCFrame,R:GetValue((tick()-X)*4,Enum.EasingStyle.Sine,Enum.EasingDirection.In))task.wait()if X+.25<=tick()then break end end else warn("\099\097\110\116 \102\105\110\100 \115\101\101\107\109\111\118\105\110\103")end script.Jumpscare_Seek:Play()N.Jumpscare_Seek.Visible=true local X=tick()for Y=1,1000,1 do local Q=math.clamp((tick()-X)*2,.1,1)N.Jumpscare_Seek.ImageLabel.Position=UDim2.new(.5+math.random(-100,100)/(5000*Q),0,.5+math.random(-100,100)/(2500*Q),0)N.Jumpscare_Seek.BackgroundColor3=Color3.new(math.random(0,4)/12,0,0)game["\082\117\110 \083\101\114\118\105\099\101"].RenderStepped:wait()if X+.7<=tick()then break end end F.stopcam=false script.Jumpscare_Seek:Stop()script.Kill:Play()N.Jumpscare_Seek.ImageLabel.Visible=false for X=1,4,1 do N.Jumpscare_Seek.BackgroundColor3=Color3.new(math.random(0,1),0,0)wait()end N.Jumpscare_Seek.Visible=false F.deathtick=tick()F.fovtarget=70 return end if X=="\082\117\115\104"then F.deathtick=tick()+10 game.SoundService.Main.Volume=0 script.Jumpscare_Rush:Play()N.Jumpscare_Rush.Visible=true local X=tick()local Y=math.random(5,30)/10 local Q=Y+math.random(10,60)/10 local w=.25 for R=1,100000,1 do task.wait()if X+Y<=tick()then N.Jumpscare_Rush.ImageLabel.Visible=true Y=Y+math.random(7,44)/10 script.Jumpscare_Rush.Pitch=1+math.random(-100,100)/500 N.Jumpscare_Rush.BackgroundColor3=Color3.new(0,0,math.random(0,10)/255)N.Jumpscare_Rush.ImageLabel.Position=UDim2.new(.5,math.random(-2,2),.5,math.random(-2,2))w=w+.05 N.Jumpscare_Rush.ImageLabel.Size=UDim2.new(w,0,w,0)end if X+Q<=tick()then break end end N.Jumpscare_Rush.ImageLabel.Visible=true script.Jumpscare_Rush:Stop()script.Jumpscare_Rush2:Play()N.Jumpscare_Rush.ImageLabel.Visible=false N.Jumpscare_Rush.ImageLabelBig.Visible=true N.Jumpscare_Rush.ImageLabelBig:TweenSize(UDim2.new(2.5,0,2.5,0),"\073\110","\083\105\110\101",.3,true)local R=tick()for X=1,1000,1 do local Y=math.random(0,10)/10 N.Jumpscare_Rush.BackgroundColor3=Color3.new(Y,Y,math.clamp(math.random(25,50)/50,Y,1))N.Jumpscare_Rush.ImageLabelBig.Position=UDim2.new(.5+math.random(-100,100)/5000,0,.5+math.random(-100,100)/3000,0)task.wait(.016666666666667)if R+.3<=tick()then break end end N.Jumpscare_Rush.ImageLabelBig.Visible=false N.Jumpscare_Rush.BackgroundColor3=Color3.new(0,0,0)N.Jumpscare_Rush.Visible=false F.deathtick=tick()return end if X=="\065-\054\048"then F.deathtick=tick()+10 game.SoundService.Main.Volume=0 script["\074\117\109\112\115\099\097\114\101\095\065-\054\048"]:Play()N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].Visible=true local X=tick()local Y=math.random(5,30)/10 local Q=Y+math.random(10,60)/10 local w=.25 for R=1,100000,1 do task.wait()if X+Y<=tick()then N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabel.Visible=true Y=Y+math.random(7,44)/10 script["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].Pitch=1+math.random(-100,100)/500 N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].BackgroundColor3=Color3.new(0,0,math.random(0,10)/255)N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabel.Position=UDim2.new(.5,math.random(-2,2),.5,math.random(-2,2))w=w+.05 N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabel.Size=UDim2.new(w,0,w,0)end if X+Q<=tick()then break end end N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabel.Visible=true script["\074\117\109\112\115\099\097\114\101\095\065-\054\048"]:Stop()script["\074\117\109\112\115\099\097\114\101\095\065-\054\048"]:Play()N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabel.Visible=false N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabelBig.Visible=true N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabelBig:TweenSize(UDim2.new(2.5,0,2.5,0),"\073\110","\083\105\110\101",.3,true)local R=tick()for X=1,1000,1 do local Y=math.random(0,10)/10 N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].BackgroundColor3=Color3.new(Y,Y,math.clamp(math.random(25,50)/50,Y,1))N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabelBig.Position=UDim2.new(.5+math.random(-100,100)/5000,0,.5+math.random(-100,100)/3000,0)task.wait(.016666666666667)if R+.3<=tick()then break end end N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].ImageLabelBig.Visible=false N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].BackgroundColor3=Color3.new(0,0,0)N["\074\117\109\112\115\099\097\114\101\095\065-\054\048"].Visible=false F.deathtick=tick()return end if X=="\065\109\098\117\115\104"then F.deathtick=tick()+10 game.SoundService.Main.Volume=0 script.Jumpscare_Ambush:Play()N.Jumpscare_Ambush.Visible=true local X=tick()local Y=math.random(5,30)/100 local Q=Y+math.random(10,60)/100 local w=.2 for R=1,100000,1 do task.wait(.016666666666667)N.Jumpscare_Ambush.ImageLabel.Position=UDim2.new(.5,math.random(-15,15),.5,math.random(-15,15))N.Jumpscare_Ambush.BackgroundColor3=Color3.new(0,math.random(4,10)/255,math.random(0,3)/255)if X+Y<=tick()then N.Jumpscare_Ambush.ImageLabel.Visible=true Y=Y+math.random(7,44)/100 script.Jumpscare_Ambush.Pitch=math.random(35,155)/100 N.Jumpscare_Ambush.BackgroundColor3=Color3.new(0,math.random(4,10)/255,math.random(0,3)/255)N.Jumpscare_Ambush.ImageLabel.Position=UDim2.new(.5,math.random(-25,25),.5,math.random(-25,25))w=w+.05 N.Jumpscare_Ambush.ImageLabel.Size=UDim2.new(w,0,w,0)end if X+Q<=tick()then break end end script.Jumpscare_Ambush2:Play()N.Jumpscare_Ambush.ImageLabel.Visible=true N.Jumpscare_Ambush.ImageLabel:TweenSize(UDim2.new(9,0,9,0),"\073\110","\081\117\097\114\116",.3,true)local R=tick()for X=1,100,1 do local Y=math.random(0,10)/10 N.Jumpscare_Ambush.BackgroundColor3=Color3.new(Y,math.clamp(math.random(25,50)/50,Y,1),math.clamp(math.random(25,50)/150,Y,1))game["\082\117\110 \083\101\114\118\105\099\101"].RenderStepped:wait()if R+.3<=tick()then break end end script.Jumpscare_Ambush:Stop()N.Jumpscare_Ambush.ImageLabel.Visible=false N.Jumpscare_Ambush.BackgroundColor3=Color3.new(0,0,0)N.Jumpscare_Ambush.Visible=false F.deathtick=tick()return end if X=="\070\105\103\117\114\101"then(R:Create(game.SoundService.Main,TweenInfo.new(.3,Enum.EasingStyle.Quart,Enum.EasingDirection.Out),{Volume=0})):Play()local X=workspace:FindFirstChild("\070\105\103\117\114\101\083\101\116\117\112",true)if workspace:FindFirstChild("\070\105\103\117\114\101\083\101\116\117\112",true)then local N=F.cam if X then N=X.Parent end F.stopcam=true F.fovtarget=80 script.Reverse:Play()script.Figure_Growl:Play()local Y=(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\074\117\109\112\115\099\097\114\101\077\111\100\101\108\115")):WaitForChild("\070\105\103\117\114\101")):Clone()if X then X.Parent=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")Y:SetPrimaryPartCFrame(X.FigureRagdoll.PrimaryPart.CFrame)else Y:SetPrimaryPartCFrame(F.cam.CFrame)end Y.Parent=F.cam;((Y:WaitForChild("\065\110\105\109\097\116\105\111\110\067\111\110\116\114\111\108\108\101\114")):LoadAnimation(Y:WaitForChild("\074\117\109\112\115\099\097\114\101"))):Play(0,1,1)game.Debris:AddItem(Y,10)local Q=script:WaitForChild("\079\114\105\103\105\110\097\108\067\070\114\097\109\101")Q.Value=F.cam.CFrame;(R:Create(Q,TweenInfo.new(.6,Enum.EasingStyle.Exponential,Enum.EasingDirection.Out),{Value=(Y:WaitForChild("\067\097\109\083\112\111\116")).CFrame})):Play()F.camShaker:ShakeOnce(20,12,0,.2)F.camShaker:ShakeOnce(2,24,.1,.5,Vector3.new(0,0,0),Vector3.new(3,1,3))F.camShaker:ShakeOnce(8,25,.7,1,Vector3.new(0,0,0))local w=tick()delay(.55,function()F.camShaker:ShakeOnce(1,35,.01,1,Vector3.new(0,0,0),Vector3.new(3,1,3))end)for N=1,1000,1 do game["\082\117\110 \083\101\114\118\105\099\101"].RenderStepped:wait()F.cam.CFrame=Q.Value*F.csgo if w+.8<=tick()then break end end if X then X.Parent=N end Y:Destroy()end script.Kill:Play()N.FlashFrame.Visible=true for X=1,8,1 do N.FlashFrame.BackgroundColor3=Color3.new(math.random(0,1),0,0)wait()end N.FlashFrame.BackgroundColor3=Color3.new(0,0,0)F.cam.CameraType=Enum.CameraType.Scriptable F.stopcam=false F.deathtick=tick()N.FlashFrame.Visible=false end end);(A:WaitForChild("\067\117\116\115\099\101\110\101")).OnClientEvent:Connect(function(N)local X=script.Cutscenes:FindFirstChild(N)if X then(require(X))(F)end end);(A:WaitForChild("\071\101\116\079\117\116\079\102\072\105\100\105\110\103")).OnClientEvent:Connect(function()F.char:SetAttribute("\072\105\100\105\110\103",true)F.char:SetAttribute("\072\105\100\105\110\103",false)end);(F.char:GetAttributeChangedSignal("\072\105\100\105\110\103")):Connect(function()if F.char:GetAttribute("\072\105\100\105\110\103")==true then for X=1,100000,1 do task.wait(.1)if F.char:GetAttribute("\072\105\100\105\110\103")==false then F.ax_t=F.ax_t+F.camlockedoffset[1]%360 F.ay_t=math.clamp(F.ay_t+F.camlockedoffset[2],-65,65)if math.abs(F.ax_t)>180 then F.ax_t=F.ax_t-360 F.ax_t=F.ax_t end if math.abs(F.ax)>180 then F.ax=F.ax-360 F.ax=F.ax end F.camShaker:ShakeOnce(8,1,0,1,Vector3.new(0,0,0))F.camlock=nil N.HideVignette.Visible=false return end end end end);(A:WaitForChild("\067\097\109\076\111\099\107")).OnClientEvent:Connect(function(X)local Y,Q,w=(CFrame.new(Vector3.new(0,0,0),X)):ToOrientation()if math.abs(F.ax-math.deg(Q))>180 then F.ax_t=F.ax_t-360 F.ax=F.ax_t end F.camlock={y=math.deg(Y),x=math.deg(Q),z=0;last=tick()+1;pos=F.char.PrimaryPart.Position}F.camlockHead=false N.HideVignette.ImageTransparency=1 N.HideVignette.Visible=true;(R:Create(N.HideVignette,TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{ImageTransparency=0})):Play()F.camShaker:ShakeOnce(12,1,0,1,Vector3.new(0,0,0))end);(A:WaitForChild("\067\097\109\076\111\099\107\072\101\097\100")).OnClientEvent:Connect(function(N)local X,Y,Q=(CFrame.new(Vector3.new(0,0,0),N)):ToOrientation()if math.abs(F.ax-math.deg(Y))>180 then F.ax_t=F.ax_t-360 end F.camlockHead=true F.camlock={y=math.deg(X);x=math.deg(Y),z=0;last=tick()+1;pos=F.char.PrimaryPart.Position}end);(A:WaitForChild("\067\097\109\083\104\097\107\101")).OnClientEvent:Connect(function(N,X,Y,Q,w,R)F.camShaker:ShakeOnce(N,X,Y,Q,w,R)end);(A:WaitForChild("\067\104\097\110\103\101\077\111\100\117\108\101\086\097\114\105\097\098\108\101")).OnClientEvent:Connect(function(N,X)F[N]=X end)local e="\072\105\100\101\077\111\110\115\116\101\114";(A:WaitForChild("\072\105\100\101\077\111\110\115\116\101\114")).OnClientEvent:Connect(function(...)(require((script:WaitForChild("\077\111\100\117\108\101\115")):WaitForChild("\072\105\100\101\077\111\110\115\116\101\114")))(F,...)end)e="\083\112\105\100\101\114\074\117\109\112\115\099\097\114\101"e="\083\112\105\100\101\114\074\117\109\112\115\099\097\114\101";(A:WaitForChild(e)).OnClientEvent:Connect(function(...)(require((script:WaitForChild("\077\111\100\117\108\101\115")):WaitForChild(e)))(F,...)end);(A:WaitForChild("\065\099\104\105\101\118\101\109\101\110\116\085\110\108\111\099\107")).OnClientEvent:Connect(function(...)(require((script:WaitForChild("\077\111\100\117\108\101\115")):WaitForChild("\065\099\104\105\101\118\101\109\101\110\116\085\110\108\111\099\107")))(F,...)end);(A:WaitForChild("\083\099\114\101\101\099\104")).OnClientEvent:Connect(function(...)(require((script:WaitForChild("\077\111\100\117\108\101\115")):WaitForChild("\083\099\114\101\101\099\104")))(F,...)end)function shakerel(N,X,Y,Q,w,R,b)local A=nil A=0 for X=1,2,1 do local Y=100 if X==2 then Y=30 end A=A+math.abs(math.clamp((F.cam.CFrame.Position-N).Magnitude,0,Y)-Y)/Y end F.camShaker:ShakeOnce((X*A)*.8,Y,Q,w,R,b)end e="\067\097\109\083\104\097\107\101\082\101\108\097\116\105\118\101";(A:WaitForChild(e)).OnClientEvent:Connect(shakerel)e="\076\105\103\104\116\110\105\110\103\083\116\114\105\107\101";(A:WaitForChild(e)).OnClientEvent:Connect(b)


local v1 = script:FindFirstAncestor("MainUI");
local l__LocalPlayer__2 = game.Players.LocalPlayer;
local v3 = require(l__LocalPlayer__2:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls();
local v4 = game["Run Service"];
local l__UserInputService__5 = game:GetService("UserInputService");
local l__TweenService__6 = game:GetService("TweenService");
local v7 = require(script:WaitForChild("Lightning"));
local l__Bricks__1 = game:GetService("ReplicatedStorage"):WaitForChild("Bricks");
local u2 = require(script.Parent);
local v8 = require(game:GetService("ReplicatedStorage"):WaitForChild("ClientModules"):WaitForChild("Module_Events"));
v8.init(u2);
local v10 = Vector3.new();
local v1110 = workspace
game.SoundService.Main.Volume = 1;
l__Bricks__1:WaitForChild("PadlockHint").OnClientEvent:Connect(function(p1, p2, p3)
	local l__Hints__11 = v1.Parent.PermUI.Hints;
	l__Hints__11.Visible = true;
	if not p1 or not p2 then
		l__Hints__11.Visible = false;
		for v12, v13 in pairs(l__Hints__11:GetChildren()) do
			if v13.Name == "Icon" then
				v13:Destroy();
			end;
		end;
		return;
	end;
	local v14 = l__Hints__11.Template:Clone();
	v14.Name = "Icon";
	v14.Visible = true;
	v14.ImageRectOffset = Vector2.new(50 * p1, 0);
	v14.TextLabel.Text = p2;
	if p3 and p3 ~= l__LocalPlayer__2.UserId then
		v14.User.Visible = true;
		v14.User.Image = "rbxthumb://type=AvatarHeadShot&id=" .. p3 .. "&w=48&h=48";
	end;
	v14.Parent = l__Hints__11;
end);
l__Bricks__1:WaitForChild("MotorReplication").OnClientEvent:Connect(function(p4, p5, p6, p7)
	if not p4 or not p4:FindFirstChild("Humanoid") or not p4:FindFirstChild("Humanoid"):GetAttribute("AppearanceFinal") then
		return;
	end;
	local v15 = CFrame.new(0, 0.22, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
	local v16 = CFrame.new(0, -1.1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
	local v17 = CFrame.new(0, 0.88, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
	local v18 = CFrame.new(1, 0.62, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
	local v19 = CFrame.new(-1, 0.62, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
	if p4 and p4:FindFirstChild("HumanoidRootPart") then
		local l__HumanoidRootPart__20 = p4:WaitForChild("HumanoidRootPart", 0.5);
		local l__ClientMotors__21 = p4:FindFirstChild("ClientMotors");
		local l__Waist__22 = p4:WaitForChild("UpperTorso", 0.5):WaitForChild("Waist", 0.5);
		local l__Neck__23 = p4:WaitForChild("Head", 0.5):WaitForChild("Neck", 0.5);
		local l__Root__24 = p4:WaitForChild("LowerTorso", 0.5):WaitForChild("Root", 0.5);
		local l__RightShoulder__25 = p4:WaitForChild("RightUpperArm", 0.5):WaitForChild("RightShoulder", 0.5);
		local l__LeftShoulder__26 = p4:WaitForChild("LeftUpperArm", 0.5):WaitForChild("LeftShoulder", 0.5);
		local l__Value__27 = l__Root__24:WaitForChild("CVal").Value;
		local l__Value__28 = l__Waist__22:WaitForChild("CVal").Value;
		local l__Value__29 = l__Neck__23:WaitForChild("CVal").Value;
		local l__Value__30 = l__LeftShoulder__26:WaitForChild("CVal").Value;
		local l__Value__31 = l__RightShoulder__25:WaitForChild("CVal").Value;
		local v32 = v16 * CFrame.Angles(0, math.rad(p5 * -45), 0);
		local v33 = v15 * CFrame.Angles(math.rad(p6 * 0.25), 0, 0) * CFrame.Angles(0, math.rad(p5 * 45), 0) * CFrame.Angles(0, 0, math.rad(p7));
		local v34 = v17 * CFrame.Angles(math.rad(p6 * 0.5), 0, 0);
		local v35 = v19 * CFrame.Angles(math.rad(p6 * -0.025), 0, 0);
		local v36 = v18 * CFrame.Angles(math.rad(p6 * -0.025), 0, 0);
		if not l__ClientMotors__21 then
			local v37 = Instance.new("BoolValue");
			v37.Name = "ClientMotors";
			v37.Parent = p4;
		end;
		if p4.Humanoid:GetAttribute("Stunned") == true then
			if l__HumanoidRootPart__20 then
				l__Waist__22.Enabled = false;
				l__Neck__23.Enabled = false;
				l__Root__24.Enabled = false;
				l__RightShoulder__25.Enabled = false;
				l__LeftShoulder__26.Enabled = false;
				return;
			end;
		else
			l__Waist__22.Enabled = true;
			l__Neck__23.Enabled = true;
			l__Root__24.Enabled = true;
			l__RightShoulder__25.Enabled = true;
			l__LeftShoulder__26.Enabled = true;
			if l__HumanoidRootPart__20 and (l__HumanoidRootPart__20.Position - u2.cam.CFrame.p).Magnitude > 100 then
				l__Root__24.C0 = v32;
				l__Waist__22.C0 = v33;
				l__Neck__23.C0 = v34;
				l__LeftShoulder__26.C0 = v35;
				l__RightShoulder__25.C0 = v36;
				return;
			end;
			if l__HumanoidRootPart__20 then
				local v38 = {};
				local v39 = {};
				local v40 = {};
				local v41 = {};
				local v42 = {};
				v38.C0 = v32;
				v39.C0 = v33;
				v40.C0 = v34;
				v41.C0 = v35;
				v42.C0 = v36;
				l__TweenService__6:Create(l__Root__24, TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), v38):Play();
				l__TweenService__6:Create(l__Waist__22, TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), v39):Play();
				l__TweenService__6:Create(l__Neck__23, TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), v40):Play();
				l__TweenService__6:Create(l__RightShoulder__25, TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), v42):Play();
				l__TweenService__6:Create(l__LeftShoulder__26, TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), v41):Play();
			end;
		end;
	end;
end);
l__Bricks__1:WaitForChild("SoundToClient").OnClientEvent:Connect(function(p8, p9, p10, p11)
	if p8 and p9 then
		u2.playaudio(p8, p9, p10, p11);
	end;
end);
local u3 = {};
l__Bricks__1:WaitForChild("UseEnemyModule").OnClientEvent:Connect(function(p12, p13, ...)
	if not u3[p12] then
		u3[p12] = require(game:GetService("ReplicatedStorage").ClientModules.EntityModules:FindFirstChild(p12));
	end;
	u3[p12][p13](u2, ...);
end);
l__Bricks__1:WaitForChild("UseEventModule").OnClientEvent:Connect(function(p14, ...)
	v8[p14](...);
end);
l__Bricks__1:WaitForChild("ReplicateAnimation").OnClientEvent:Connect(function(p15, p16, p17, p18, p19, p20)
	local v43 = game.ReplicatedStorage.AnimationRoot:Clone();
	local v44 = p15.Humanoid.Animator:LoadAnimation(v43.Animation);
	v43:SetPrimaryPartCFrame(p15.PrimaryPart.CFrame);
	v43.Parent = u2.cam;
	l__TweenService__6:Create(v43.PrimaryPart, TweenInfo.new(0.3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
		CFrame = p17
	}):Play();
	local v45 = nil;
	local v46 = v43.AnimationController:LoadAnimation(p16);
	p16 = p15.Humanoid.Animator:LoadAnimation(p16);
	local v47 = false;
	if u2.char == p15 then
		u2.stopcam = true;
		v47 = true;
	end;
	if p19 and p20 and v47 then
		p20 = p19:LoadAnimation(p20);
		v45 = p19.Parent:FindFirstChild("CamAttach", true) and v45.WorldCFrame;
		u2.hideplayers = -1;
	end;
	for v48 = 1, 1000 do
		if p16.Length > 0 then
			if p20 == nil then
				break;
			end;
			if p20.Length > 0 then
				break;
			end;
		end;
		task.wait();
	end;
	p16:Play(0, 1, 1);
	v44:Play(0, 1, 1);
	v46:Play(0, 1, 1);
	if p19 and p20 then
		p20:Play(0, 1, 1);
	end;
	local l__CFrame__49 = p15.PrimaryPart.CFrame;
	local l__CFrame__50 = u2.cam.CFrame;
	local u4 = false;
	local u5 = tick();
	task.spawn(function()
		for v51 = 1, 100000 do
			task.wait();
			if u4 then
				break;
			end;
			local v52 = l__TweenService__6:GetValue((tick() - u5) * 4, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut);
			if v45 then
				v52 = l__TweenService__6:GetValue((tick() - u5) / 1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut);
			end;
			p15.PrimaryPart.CFrame = p15.PrimaryPart.CFrame:Lerp(v43.LowerTorso.CFrame * CFrame.new(0, 0.96, 0), v52);
			if v47 then
				local v53
				if v45 then
					v53 = v45;
				else
					v53 = p15.Head.CFrame * CFrame.new(0, 0.15, -0.25) * CFrame.Angles(math.rad(math.clamp(u2.bobspring.p.Y, -80, 80)), math.rad(math.clamp(u2.bobspring.p.X, -80, 80)), math.rad(math.clamp(u2.bobspring.p.Z, -40, 40))) * CFrame.Angles(0, math.rad(u2.camlockedoffset[1]), 0) * CFrame.Angles(math.rad(u2.camlockedoffset[2]), 0, 0);
				end;
				u2.cam.CFrame = u2.cam.CFrame:Lerp(v53, v52);
			end;
		end;
	end);
	task.wait(p16.Length - 0.1);
	u4 = true;
	l__TweenService__6:Create(p15.PrimaryPart, TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
		CFrame = p18
	}):Play();
	p16:AdjustWeight(0.01);
	p16:AdjustSpeed(0.01);
	p16:Stop(0);
	v46:Stop(0);
	v44:Stop(0);
	v43:Destroy();
	if v47 then
		local v54 = tick();
		local l__CFrame__55 = u2.cam.CFrame;
		for v56 = 1, 10000 do
			u2.cam.CFrame = l__CFrame__55:Lerp(u2.basecamcf * u2.csgo, (l__TweenService__6:GetValue((tick() - v54) * 4, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)));
			task.wait();
			if v54 + 0.25 <= tick() then
				break;
			end;
		end;
		u2.stopcam = false;
		u2.crouching = false;
	end;
end);
spawn(function()
	while true do
		task.wait(0.1)
		if v1110:FindFirstChild("FigureSetup", true) then
			local l__FigureRagdoll__19 = v1110:FindFirstChild("FigureSetup", true).FigureRagdoll;
			local l__Parent__20 = l__FigureRagdoll__19.Parent;
			local v21 = 0;
			local l__Click__22 = l__FigureRagdoll__19.Head.Click;
			local l__Growl__23 = l__FigureRagdoll__19.Head.Growl;
			local v24 = {};
			for v25, v26 in pairs(l__FigureRagdoll__19:GetDescendants()) do
				if v26:IsA("Light") and v26.Name == "BlisterLight" then
					v26.Enabled = true;
					v26.Brightness = 0;
					table.insert(v24, {
						Light = v26, 
						Distance = l__FigureRagdoll__19.Head.Position - v26.Parent.WorldPosition
					});
				end;
			end;
			local v27 = TweenInfo.new(0.1, Enum.EasingStyle.Linear);
			for v28 = 1, 100000000 do
				wait(0.1);
				if not l__FigureRagdoll__19 then
					break;
				end;
				if l__FigureRagdoll__19.Parent ~= l__Parent__20 then
					break;
				end;
				local v29 = (l__Click__22.PlaybackLoudness + l__Growl__23.PlaybackLoudness) / 60;
				if v29 ~= v21 then
					for v30, v31 in v24, nil do
						delay(v31.Distance / 2, function()
							l__TweenService__6:Create(v31.Light, v27, {
								Brightness = v29
							}):Play();
						end);
					end;
				end;
				v21 = v29;
			end;
		end;
		if v1110:FindFirstChild("FigureAnimatedWelded", true) then
			local l__FigureAnimatedWelded__32 = v1110:FindFirstChild("FigureAnimatedWelded", true);
			local l__Parent__33 = l__FigureAnimatedWelded__32.Parent;
			local v34 = 0;
			local l__Click__35 = l__FigureAnimatedWelded__32.Parent.Head.Click;
			local l__Growl__36 = l__FigureAnimatedWelded__32.Parent.Head.Growl;
			local v37 = {};
			for v38, v39 in pairs(l__FigureAnimatedWelded__32:GetDescendants()) do
				if v39:IsA("Light") and v39.Name == "BlisterLight" then
					v39.Enabled = true;
					v39.Brightness = 0;
					table.insert(v37, {
						Light = v39, 
						Distance = l__FigureAnimatedWelded__32.Parent.Head.Position - v39.Parent.WorldPosition
					});
				end;
			end;
			local v40 = TweenInfo.new(0.1, Enum.EasingStyle.Linear);
			for v41 = 1, 100000000 do
				wait(0.1);
				if not l__FigureAnimatedWelded__32 then
					break;
				end;
				if l__FigureAnimatedWelded__32.Parent ~= l__Parent__33 then
					break;
				end;
				local v42 = (l__Click__35.PlaybackLoudness + l__Growl__36.PlaybackLoudness) / 90 - 0.15;
				if v42 ~= v34 then
					for v43, v44 in v37, nil do
						delay(v44.Distance / 4, function()
							l__TweenService__6:Create(v44.Light, v40, {
								Brightness = v42
							}):Play();
						end);
					end;
				end;
				v34 = v42;
			end;
		end;
	end;
end)
local u6 = false;
l__Bricks__1:WaitForChild("Jumpscare").OnClientEvent:Connect(function(p21)
	if u6 == true then
		return;
	end;
	u6 = true;
	v1.MainFrame.Heartbeat.Visible = false;
	if p21 == "Seek" then
		u2.deathtick = tick() + 0.5;
		if workspace:FindFirstChild("SeekMoving", true) then
			local l__SeekMoving__57 = workspace:FindFirstChild("SeekMoving", true);
			u2.stopcam = true;
			u2.fovtarget = 40;
			local v58 = tick();
			for v59 = 1, 10000 do
				u2.cam.CFrame = (u2.basecamcf * u2.csgo):Lerp(l__SeekMoving__57.PrimaryPart.CamAttach.WorldCFrame, (l__TweenService__6:GetValue((tick() - v58) * 4, Enum.EasingStyle.Sine, Enum.EasingDirection.In)));
				task.wait();
				if v58 + 0.25 <= tick() then
					break;
				end;
			end;
		else
			warn("cant find seekmoving");
		end;
		script.Jumpscare_Seek:Play();
		v1.Jumpscare_Seek.Visible = true;
		local v60 = tick();
		for v61 = 1, 1000 do
			local v62 = math.clamp((tick() - v60) * 2, 0.1, 1);
			v1.Jumpscare_Seek.ImageLabel.Position = UDim2.new(0.5 + math.random(-100, 100) / (5000 * v62), 0, 0.5 + math.random(-100, 100) / (2500 * v62), 0);
			v1.Jumpscare_Seek.BackgroundColor3 = Color3.new(math.random(0, 4) / 12, 0, 0);
			game["Run Service"].RenderStepped:wait();
			if v60 + 0.7 <= tick() then
				break;
			end;
		end;
		u2.stopcam = false;
		script.Jumpscare_Seek:Stop();
		script.Kill:Play();
		v1.Jumpscare_Seek.ImageLabel.Visible = false;
		for v63 = 1, 4 do
			v1.Jumpscare_Seek.BackgroundColor3 = Color3.new(math.random(0, 1), 0, 0);
			wait();
		end;
		v1.Jumpscare_Seek.Visible = false;
		u2.deathtick = tick();
		u2.fovtarget = 70;
		return;
	end;
	if p21 == "Rush" then
		u2.deathtick = tick() + 10;
		game.SoundService.Main.Volume = 0;
		script.Jumpscare_Rush:Play();
		v1.Jumpscare_Rush.Visible = true;
		local v64 = tick();
		local v65 = math.random(5, 30) / 10;
		local v66 = v65 + math.random(10, 60) / 10;
		local v67 = 0.25;
		for v68 = 1, 100000 do
			task.wait();
			if v64 + v65 <= tick() then
				v1.Jumpscare_Rush.ImageLabel.Visible = true;
				v65 = v65 + math.random(7, 44) / 10;
				script.Jumpscare_Rush.Pitch = 1 + math.random(-100, 100) / 500;
				v1.Jumpscare_Rush.BackgroundColor3 = Color3.new(0, 0, math.random(0, 10) / 255);
				v1.Jumpscare_Rush.ImageLabel.Position = UDim2.new(0.5, math.random(-2, 2), 0.5, math.random(-2, 2));
				v67 = v67 + 0.05;
				v1.Jumpscare_Rush.ImageLabel.Size = UDim2.new(v67, 0, v67, 0);
			end;
			if v64 + v66 <= tick() then
				break;
			end;
		end;
		v1.Jumpscare_Rush.ImageLabel.Visible = true;
		script.Jumpscare_Rush:Stop();
		script.Jumpscare_Rush2:Play();
		v1.Jumpscare_Rush.ImageLabel.Visible = false;
		v1.Jumpscare_Rush.ImageLabelBig.Visible = true;
		v1.Jumpscare_Rush.ImageLabelBig:TweenSize(UDim2.new(2.5, 0, 2.5, 0), "In", "Sine", 0.3, true);
		local v69 = tick();
		for v70 = 1, 1000 do
			local v71 = math.random(0, 10) / 10;
			v1.Jumpscare_Rush.BackgroundColor3 = Color3.new(v71, v71, math.clamp(math.random(25, 50) / 50, v71, 1));
			v1.Jumpscare_Rush.ImageLabelBig.Position = UDim2.new(0.5 + math.random(-100, 100) / 5000, 0, 0.5 + math.random(-100, 100) / 3000, 0);
			task.wait(0.016666666666666666);
			if v69 + 0.3 <= tick() then
				break;
			end;
		end;
		v1.Jumpscare_Rush.ImageLabelBig.Visible = false;
		v1.Jumpscare_Rush.BackgroundColor3 = Color3.new(0, 0, 0);
		v1.Jumpscare_Rush.Visible = false;
		u2.deathtick = tick();
		return;
	end;
	if p21 == "A-60" then
		u2.deathtick = tick() + 10;
		game.SoundService.Main.Volume = 0;
		script["Jumpscare_A-60"]:Play();
		v1["Jumpscare_A-60"].Visible = true;
		local v64 = tick();
		local v65 = math.random(5, 30) / 10;
		local v66 = v65 + math.random(10, 60) / 10;
		local v67 = 0.25;
		for v68 = 1, 100000 do
			task.wait();
			if v64 + v65 <= tick() then
				v1["Jumpscare_A-60"].ImageLabel.Visible = true;
				v65 = v65 + math.random(7, 44) / 10;
				script["Jumpscare_A-60"].Pitch = 1 + math.random(-100, 100) / 500;
				v1["Jumpscare_A-60"].BackgroundColor3 = Color3.new(0, 0, math.random(0, 10) / 255);
				v1["Jumpscare_A-60"].ImageLabel.Position = UDim2.new(0.5, math.random(-2, 2), 0.5, math.random(-2, 2));
				v67 = v67 + 0.05;
				v1["Jumpscare_A-60"].ImageLabel.Size = UDim2.new(v67, 0, v67, 0);
			end;
			if v64 + v66 <= tick() then
				break;
			end;
		end;
		v1["Jumpscare_A-60"].ImageLabel.Visible = true;
		script["Jumpscare_A-60"]:Stop();
		script["Jumpscare_A-60"]:Play();
		v1["Jumpscare_A-60"].ImageLabel.Visible = false;
		v1["Jumpscare_A-60"].ImageLabelBig.Visible = true;
		v1["Jumpscare_A-60"].ImageLabelBig:TweenSize(UDim2.new(2.5, 0, 2.5, 0), "In", "Sine", 0.3, true);
		local v69 = tick();
		for v70 = 1, 1000 do
			local v71 = math.random(0, 10) / 10;
			v1["Jumpscare_A-60"].BackgroundColor3 = Color3.new(v71, v71, math.clamp(math.random(25, 50) / 50, v71, 1));
			v1["Jumpscare_A-60"].ImageLabelBig.Position = UDim2.new(0.5 + math.random(-100, 100) / 5000, 0, 0.5 + math.random(-100, 100) / 3000, 0);
			task.wait(0.016666666666666666);
			if v69 + 0.3 <= tick() then
				break;
			end;
		end;
		v1["Jumpscare_A-60"].ImageLabelBig.Visible = false;
		v1["Jumpscare_A-60"].BackgroundColor3 = Color3.new(0, 0, 0);
		v1["Jumpscare_A-60"].Visible = false;
		u2.deathtick = tick();
		return;
	end;
	if p21 == "Ambush" then
		u2.deathtick = tick() + 10;
		game.SoundService.Main.Volume = 0;
		script.Jumpscare_Ambush:Play();
		v1.Jumpscare_Ambush.Visible = true;
		local v72 = tick();
		local v73 = math.random(5, 30) / 100;
		local v74 = v73 + math.random(10, 60) / 100;
		local v75 = 0.2;
		for v76 = 1, 100000 do
			task.wait(0.016666666666666666);
			v1.Jumpscare_Ambush.ImageLabel.Position = UDim2.new(0.5, math.random(-15, 15), 0.5, math.random(-15, 15));
			v1.Jumpscare_Ambush.BackgroundColor3 = Color3.new(0, math.random(4, 10) / 255, math.random(0, 3) / 255);
			if v72 + v73 <= tick() then
				v1.Jumpscare_Ambush.ImageLabel.Visible = true;
				v73 = v73 + math.random(7, 44) / 100;
				script.Jumpscare_Ambush.Pitch = math.random(35, 155) / 100;
				v1.Jumpscare_Ambush.BackgroundColor3 = Color3.new(0, math.random(4, 10) / 255, math.random(0, 3) / 255);
				v1.Jumpscare_Ambush.ImageLabel.Position = UDim2.new(0.5, math.random(-25, 25), 0.5, math.random(-25, 25));
				v75 = v75 + 0.05;
				v1.Jumpscare_Ambush.ImageLabel.Size = UDim2.new(v75, 0, v75, 0);
			end;
			if v72 + v74 <= tick() then
				break;
			end;
		end;
		script.Jumpscare_Ambush2:Play();
		v1.Jumpscare_Ambush.ImageLabel.Visible = true;
		v1.Jumpscare_Ambush.ImageLabel:TweenSize(UDim2.new(9, 0, 9, 0), "In", "Quart", 0.3, true);
		local v77 = tick();
		for v78 = 1, 100 do
			local v79 = math.random(0, 10) / 10;
			v1.Jumpscare_Ambush.BackgroundColor3 = Color3.new(v79, math.clamp(math.random(25, 50) / 50, v79, 1), math.clamp(math.random(25, 50) / 150, v79, 1));
			game["Run Service"].RenderStepped:wait();
			if v77 + 0.3 <= tick() then
				break;
			end;
		end;
		script.Jumpscare_Ambush:Stop();
		v1.Jumpscare_Ambush.ImageLabel.Visible = false;
		v1.Jumpscare_Ambush.BackgroundColor3 = Color3.new(0, 0, 0);
		v1.Jumpscare_Ambush.Visible = false;
		u2.deathtick = tick();
		return;
	end;
	if p21 == "Figure" then
		l__TweenService__6:Create(game.SoundService.Main, TweenInfo.new(0.3, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {
			Volume = 0
		}):Play();
		local l__FigureSetup__80 = workspace:FindFirstChild("FigureSetup", true);
		if workspace:FindFirstChild("FigureSetup", true) then
			local v81 = u2.cam;
			if l__FigureSetup__80 then
				v81 = l__FigureSetup__80.Parent;
			end;
			u2.stopcam = true;
			u2.fovtarget = 80;
			script.Reverse:Play();
			script.Figure_Growl:Play();
			local v82 = game:GetService("ReplicatedStorage"):WaitForChild("JumpscareModels"):WaitForChild("Figure"):Clone();
			if l__FigureSetup__80 then
				l__FigureSetup__80.Parent = game:GetService("ReplicatedStorage");
				v82:SetPrimaryPartCFrame(l__FigureSetup__80.FigureRagdoll.PrimaryPart.CFrame);
			else
				v82:SetPrimaryPartCFrame(u2.cam.CFrame);
			end;
			v82.Parent = u2.cam;
			v82:WaitForChild("AnimationController"):LoadAnimation(v82:WaitForChild("Jumpscare")):Play(0, 1, 1);
			game.Debris:AddItem(v82, 10);
			local l__OriginalCFrame__83 = script:WaitForChild("OriginalCFrame");
			l__OriginalCFrame__83.Value = u2.cam.CFrame;
			l__TweenService__6:Create(l__OriginalCFrame__83, TweenInfo.new(0.6, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), {
				Value = v82:WaitForChild("CamSpot").CFrame
			}):Play();
			u2.camShaker:ShakeOnce(20, 12, 0, 0.2);
			u2.camShaker:ShakeOnce(2, 24, 0.1, 0.5, Vector3.new(0, 0, 0), Vector3.new(3, 1, 3));
			u2.camShaker:ShakeOnce(8, 25, 0.7, 1, Vector3.new(0, 0, 0));
			local v84 = tick();
			delay(0.55, function()
				u2.camShaker:ShakeOnce(1, 35, 0.01, 1, Vector3.new(0, 0, 0), Vector3.new(3, 1, 3));
			end);
			for v85 = 1, 1000 do
				game["Run Service"].RenderStepped:wait();
				u2.cam.CFrame = l__OriginalCFrame__83.Value * u2.csgo;
				if v84 + 0.8 <= tick() then
					break;
				end;
			end;
			if l__FigureSetup__80 then
				l__FigureSetup__80.Parent = v81;
			end;
			v82:Destroy();
		end;
		script.Kill:Play();
		v1.FlashFrame.Visible = true;
		for v86 = 1, 8 do
			v1.FlashFrame.BackgroundColor3 = Color3.new(math.random(0, 1), 0, 0);
			wait();
		end;
		v1.FlashFrame.BackgroundColor3 = Color3.new(0, 0, 0);
		u2.cam.CameraType = Enum.CameraType.Scriptable;
		u2.stopcam = false;
		u2.deathtick = tick();
		v1.FlashFrame.Visible = false;
	end;
end);
l__Bricks__1:WaitForChild("Cutscene").OnClientEvent:Connect(function(p22)
	local v87 = script.Cutscenes:FindFirstChild(p22);
	if v87 then
		require(v87)(u2);
	end;
end);
l__Bricks__1:WaitForChild("GetOutOfHiding").OnClientEvent:Connect(function()
	u2.char:SetAttribute("Hiding", true);
	u2.char:SetAttribute("Hiding", false);
end);
u2.char:GetAttributeChangedSignal("Hiding"):Connect(function()
	if u2.char:GetAttribute("Hiding") == true then
		for v88 = 1, 100000 do
			task.wait(0.1);
			if u2.char:GetAttribute("Hiding") == false then
				u2.ax_t = u2.ax_t + u2.camlockedoffset[1] % 360;
				u2.ay_t = math.clamp(u2.ay_t + u2.camlockedoffset[2], -65, 65);
				if math.abs(u2.ax_t) > 180 then
					u2.ax_t = u2.ax_t - 360;
					u2.ax_t = u2.ax_t;
				end;
				if math.abs(u2.ax) > 180 then
					u2.ax = u2.ax - 360;
					u2.ax = u2.ax;
				end;
				u2.camShaker:ShakeOnce(8, 1, 0, 1, Vector3.new(0, 0, 0));
				u2.camlock = nil;
				--game:GetService("ReplicatedStorage").Bricks.CamLock:FireServer();
				v1.HideVignette.Visible = false;
				return;
			end;
		end;
	end;
end);
l__Bricks__1:WaitForChild("CamLock").OnClientEvent:Connect(function(p23)
	local v89, v90, v91 = CFrame.new(Vector3.new(0, 0, 0), p23):ToOrientation();
	if math.abs(u2.ax - math.deg(v90)) > 180 then
		u2.ax_t = u2.ax_t - 360;
		u2.ax = u2.ax_t;
	end;
	u2.camlock = {
		y = math.deg(v89), 
		x = math.deg(v90), 
		z = 0, 
		last = tick() + 1, 
		pos = u2.char.PrimaryPart.Position
	};
	u2.camlockHead = false;
	v1.HideVignette.ImageTransparency = 1;
	v1.HideVignette.Visible = true;
	l__TweenService__6:Create(v1.HideVignette, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
		ImageTransparency = 0
	}):Play();
	u2.camShaker:ShakeOnce(12, 1, 0, 1, Vector3.new(0, 0, 0));
end);
l__Bricks__1:WaitForChild("CamLockHead").OnClientEvent:Connect(function(p24)
	local v92, v93, v94 = CFrame.new(Vector3.new(0, 0, 0), p24):ToOrientation();
	if math.abs(u2.ax - math.deg(v93)) > 180 then
		u2.ax_t = u2.ax_t - 360;
	end;
	u2.camlockHead = true;
	u2.camlock = {
		y = math.deg(v92), 
		x = math.deg(v93), 
		z = 0, 
		last = tick() + 1, 
		pos = u2.char.PrimaryPart.Position
	};
end);
l__Bricks__1:WaitForChild("CamShake").OnClientEvent:Connect(function(p25, p26, p27, p28, p29, p30)
	u2.camShaker:ShakeOnce(p25, p26, p27, p28, p29, p30);
end);
l__Bricks__1:WaitForChild("ChangeModuleVariable").OnClientEvent:Connect(function(p31, p32)
	u2[p31] = p32;
end);
local u7 = "HideMonster";
l__Bricks__1:WaitForChild("HideMonster").OnClientEvent:Connect(function(...)
	require(script:WaitForChild("Modules"):WaitForChild("HideMonster"))(u2, ...);
end);
u7 = "SpiderJumpscare";
u7 = "SpiderJumpscare";
l__Bricks__1:WaitForChild(u7).OnClientEvent:Connect(function(...)
	require(script:WaitForChild("Modules"):WaitForChild(u7))(u2, ...);
end);

l__Bricks__1:WaitForChild("AchievementUnlock").OnClientEvent:Connect(function(...)
	require(script:WaitForChild("Modules"):WaitForChild("AchievementUnlock"))(u2, ...);
end);

l__Bricks__1:WaitForChild("Screech").OnClientEvent:Connect(function(...)
	require(script:WaitForChild("Modules"):WaitForChild("Screech"))(u2, ...);
end);
function shakerel(p33, p34, p35, p36, p37, p38, p39)
	local v99 = nil;
	v99 = 0;
	for v100 = 1, 2 do
		local v101 = 100;
		if v100 == 2 then
			v101 = 30;
		end;
		v99 = v99 + math.abs(math.clamp((u2.cam.CFrame.Position - p33).Magnitude, 0, v101) - v101) / v101;
	end;
	u2.camShaker:ShakeOnce(p34 * v99 * 0.8, p35, p36, p37, p38, p39);
end;
u7 = "CamShakeRelative";
l__Bricks__1:WaitForChild(u7).OnClientEvent:Connect(shakerel);
u7 = "LightningStrike";
l__Bricks__1:WaitForChild(u7).OnClientEvent:Connect(v7);
