local l=require(script.Parent)local V=script:FindFirstAncestor("\077\097\105\110\085\073")return function(C)if C=="\082\117\115\104"then l.deathtick=tick()+10 game.SoundService.Main.Volume=0 script.Jumpscare_Rush:Play()V.Jumpscare.Jumpscare_Rush.Visible=true local C=tick()local x=math.random(5,30)/10 local G=x+math.random(10,60)/10 local Y=.25 for l=1,100000,1 do task.wait()if C+x<=tick()then V.Jumpscare.Jumpscare_Rush.ImageLabel.Visible=true x=x+math.random(7,44)/10 script.Jumpscare_Rush.Pitch=1+math.random(-100,100)/500 V.Jumpscare.Jumpscare_Rush.BackgroundColor3=Color3.new(0,0,math.random(0,10)/255)V.Jumpscare.Jumpscare_Rush.ImageLabel.Position=UDim2.new(.5,math.random(-2,2),.5,math.random(-2,2))Y=Y+.05 V.Jumpscare.Jumpscare_Rush.ImageLabel.Size=UDim2.new(Y,0,Y,0)end if C+G<=tick()then break end end V.Jumpscare.Jumpscare_Rush.ImageLabel.Visible=true script.Jumpscare_Rush:Stop()script.Jumpscare_Rush2:Play()V.Jumpscare.Jumpscare_Rush.ImageLabel.Visible=false V.Jumpscare.Jumpscare_Rush.ImageLabelBig.Visible=true V.Jumpscare.Jumpscare_Rush.ImageLabelBig:TweenSize(UDim2.new(2.5,0,2.5,0),"\073\110","\083\105\110\101",.3,true)local r=tick()for l=1,1000,1 do local C=math.random(0,10)/10 V.Jumpscare.Jumpscare_Rush.BackgroundColor3=Color3.new(C,C,math.clamp(math.random(25,50)/50,C,1))V.Jumpscare.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 V.Jumpscare.Jumpscare_Rush.ImageLabelBig.Visible=false V.Jumpscare.Jumpscare_Rush.BackgroundColor3=Color3.new(0,0,0)V.Jumpscare.Jumpscare_Rush.Visible=false l.deathtick=tick()return end if C~="\065\109\098\117\115\104"then return end l.deathtick=tick()+10 game.SoundService.Main.Volume=0 script.Jumpscare_Ambush:Play()V.Jumpscare.Jumpscare_Ambush.Visible=true local x=tick()local G=math.random(5,30)/100 local Y=G+math.random(10,60)/100 local r=.2 for l=1,100000,1 do task.wait(.016666666666667)V.Jumpscare.Jumpscare_Ambush.ImageLabel.Position=UDim2.new(.5,math.random(-15,15),.5,math.random(-15,15))V.Jumpscare.Jumpscare_Ambush.BackgroundColor3=Color3.new(0,math.random(4,10)/255,math.random(0,3)/255)if x+G<=tick()then V.Jumpscare.Jumpscare_Ambush.ImageLabel.Visible=true G=G+math.random(7,44)/100 script.Jumpscare_Ambush.Pitch=math.random(35,155)/100 V.Jumpscare.Jumpscare_Ambush.BackgroundColor3=Color3.new(0,math.random(4,10)/255,math.random(0,3)/255)V.Jumpscare.Jumpscare_Ambush.ImageLabel.Position=UDim2.new(.5,math.random(-25,25),.5,math.random(-25,25))r=r+.05 V.Jumpscare.Jumpscare_Ambush.ImageLabel.Size=UDim2.new(r,0,r,0)end if x+Y<=tick()then break end end script.Jumpscare_Ambush2:Play()V.Jumpscare.Jumpscare_Ambush.ImageLabel.Visible=true V.Jumpscare.Jumpscare_Ambush.ImageLabel:TweenSize(UDim2.new(9,0,9,0),"\073\110","\081\117\097\114\116",.3,true)local N=tick()for l=1,100,1 do local C=math.random(0,10)/10 V.Jumpscare.Jumpscare_Ambush.BackgroundColor3=Color3.new(C,math.clamp(math.random(25,50)/50,C,1),math.clamp(math.random(25,50)/150,C,1))game["\082\117\110 \083\101\114\118\105\099\101"].RenderStepped:wait()if N+.3<=tick()then break end end script.Jumpscare_Ambush:Stop()V.Jumpscare.Jumpscare_Ambush.ImageLabel.Visible=false V.Jumpscare.Jumpscare_Ambush.BackgroundColor3=Color3.new(0,0,0)V.Jumpscare.Jumpscare_Ambush.Visible=false l.deathtick=tick()end


local u1 = require(script.Parent);
local u2 = script:FindFirstAncestor("MainUI");
return function(p1)
	if p1 == "Rush" then
		u1.deathtick = tick() + 10;
		game.SoundService.Main.Volume = 0;
		script.Jumpscare_Rush:Play();
		u2.Jumpscare.Jumpscare_Rush.Visible = true;
		local v1 = tick();
		local v2 = math.random(5, 30) / 10;
		local v3 = v2 + math.random(10, 60) / 10;
		local v4 = 0.25;
		for v5 = 1, 100000 do
			task.wait();
			if v1 + v2 <= tick() then
				u2.Jumpscare.Jumpscare_Rush.ImageLabel.Visible = true;
				v2 = v2 + math.random(7, 44) / 10;
				script.Jumpscare_Rush.Pitch = 1 + math.random(-100, 100) / 500;
				u2.Jumpscare.Jumpscare_Rush.BackgroundColor3 = Color3.new(0, 0, math.random(0, 10) / 255);
				u2.Jumpscare.Jumpscare_Rush.ImageLabel.Position = UDim2.new(0.5, math.random(-2, 2), 0.5, math.random(-2, 2));
				v4 = v4 + 0.05;
				u2.Jumpscare.Jumpscare_Rush.ImageLabel.Size = UDim2.new(v4, 0, v4, 0);
			end;
			if v1 + v3 <= tick() then
				break;
			end;
		end;
		u2.Jumpscare.Jumpscare_Rush.ImageLabel.Visible = true;
		script.Jumpscare_Rush:Stop();
		script.Jumpscare_Rush2:Play();
		u2.Jumpscare.Jumpscare_Rush.ImageLabel.Visible = false;
		u2.Jumpscare.Jumpscare_Rush.ImageLabelBig.Visible = true;
		u2.Jumpscare.Jumpscare_Rush.ImageLabelBig:TweenSize(UDim2.new(2.5, 0, 2.5, 0), "In", "Sine", 0.3, true);
		local v6 = tick();
		for v7 = 1, 1000 do
			local v8 = math.random(0, 10) / 10;
			u2.Jumpscare.Jumpscare_Rush.BackgroundColor3 = Color3.new(v8, v8, math.clamp(math.random(25, 50) / 50, v8, 1));
			u2.Jumpscare.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 v6 + 0.3 <= tick() then
				break;
			end;
		end;
		u2.Jumpscare.Jumpscare_Rush.ImageLabelBig.Visible = false;
		u2.Jumpscare.Jumpscare_Rush.BackgroundColor3 = Color3.new(0, 0, 0);
		u2.Jumpscare.Jumpscare_Rush.Visible = false;
		u1.deathtick = tick();
		return;
	end;
	if p1 ~= "Ambush" then
		return;
	end;
	u1.deathtick = tick() + 10;
	game.SoundService.Main.Volume = 0;
	script.Jumpscare_Ambush:Play();
	u2.Jumpscare.Jumpscare_Ambush.Visible = true;
	local v9 = tick();
	local v10 = math.random(5, 30) / 100;
	local v11 = v10 + math.random(10, 60) / 100;
	local v12 = 0.2;
	for v13 = 1, 100000 do
		task.wait(0.016666666666666666);
		u2.Jumpscare.Jumpscare_Ambush.ImageLabel.Position = UDim2.new(0.5, math.random(-15, 15), 0.5, math.random(-15, 15));
		u2.Jumpscare.Jumpscare_Ambush.BackgroundColor3 = Color3.new(0, math.random(4, 10) / 255, math.random(0, 3) / 255);
		if v9 + v10 <= tick() then
			u2.Jumpscare.Jumpscare_Ambush.ImageLabel.Visible = true;
			v10 = v10 + math.random(7, 44) / 100;
			script.Jumpscare_Ambush.Pitch = math.random(35, 155) / 100;
			u2.Jumpscare.Jumpscare_Ambush.BackgroundColor3 = Color3.new(0, math.random(4, 10) / 255, math.random(0, 3) / 255);
			u2.Jumpscare.Jumpscare_Ambush.ImageLabel.Position = UDim2.new(0.5, math.random(-25, 25), 0.5, math.random(-25, 25));
			v12 = v12 + 0.05;
			u2.Jumpscare.Jumpscare_Ambush.ImageLabel.Size = UDim2.new(v12, 0, v12, 0);
		end;
		if v9 + v11 <= tick() then
			break;
		end;
	end;
	script.Jumpscare_Ambush2:Play();
	u2.Jumpscare.Jumpscare_Ambush.ImageLabel.Visible = true;
	u2.Jumpscare.Jumpscare_Ambush.ImageLabel:TweenSize(UDim2.new(9, 0, 9, 0), "In", "Quart", 0.3, true);
	local v14 = tick();
	for v15 = 1, 100 do
		local v16 = math.random(0, 10) / 10;
		u2.Jumpscare.Jumpscare_Ambush.BackgroundColor3 = Color3.new(v16, math.clamp(math.random(25, 50) / 50, v16, 1), math.clamp(math.random(25, 50) / 150, v16, 1));
		game["Run Service"].RenderStepped:wait();
		if v14 + 0.3 <= tick() then
			break;
		end;
	end;
	script.Jumpscare_Ambush:Stop();
	u2.Jumpscare.Jumpscare_Ambush.ImageLabel.Visible = false;
	u2.Jumpscare.Jumpscare_Ambush.BackgroundColor3 = Color3.new(0, 0, 0);
	u2.Jumpscare.Jumpscare_Ambush.Visible = false;
	u1.deathtick = tick();
end;
