local b=script:FindFirstAncestor("\077\097\105\110\085\073")local O=game.Players.LocalPlayer local I=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")return function(b,O,T)local C=game.ReplicatedStorage.Entities.Spider:Clone()C.Parent=b.cam local H=C.AnimationController:LoadAnimation(C.Animations.Jump)local y=tick()for b=1,100,1 do if H.Length>0 then break end task.wait()end local o=math.ceil(O.Main.Size.X*10)-2 local r=math.ceil(O.Main.Size.Z*10)-2 local X=Vector3.new(math.random(-o,o)/22,0,math.random(-r,r)/22)local i=CFrame.Angles(0,math.rad(math.random(0,360)),0)C:SetPrimaryPartCFrame((O.Main.CFrame+X)*i)local Z=C.PrimaryPart.CFrame for b=1,1000000,1 do task.wait()C.PrimaryPart.CFrame=(O.Main.CFrame+X)*i if y+T<tick()then break end end C.PrimaryPart.Sound:Play()script.Scare:Play()H:Play(0)local G=tick()local v=C.PrimaryPart.CFrame b.camShaker:ShakeOnce(5,6,.3,.6)for O=1,1000000,1 do task.wait()C.PrimaryPart.CFrame=v:Lerp(CFrame.new(b.cam.CFrame.Position+b.cam.CFrame.LookVector*.35,b.cam.CFrame.Position),I:GetValue((tick()-G)/.2,Enum.EasingStyle.Linear,Enum.EasingDirection.In))if G+.2<tick()then break end end b.camShaker:ShakeOnce(3,24,0,1)local d=tick()for O=1,1000000,1 do task.wait()C.PrimaryPart.CFrame=CFrame.new(b.cam.CFrame.Position+b.cam.CFrame.LookVector*.35,b.cam.CFrame.Position)if d+.6<tick()then break end end C:Destroy()end


local v1 = script:FindFirstAncestor("MainUI");
local l__LocalPlayer__2 = game.Players.LocalPlayer;
local l__TweenService__1 = game:GetService("TweenService");
return function(p1, p2, p3)
	local v3 = game.ReplicatedStorage.Entities.Spider:Clone();
	v3.Parent = p1.cam;
	local v4 = v3.AnimationController:LoadAnimation(v3.Animations.Jump);
	local v5 = tick();
	for v6 = 1, 100 do
		if v4.Length > 0 then
			break;
		end;
		task.wait();
	end;
	local v7 = math.ceil(p2.Main.Size.X * 10) - 2;
	local v8 = math.ceil(p2.Main.Size.Z * 10) - 2;
	local v9 = Vector3.new(math.random(-v7, v7) / 22, 0, math.random(-v8, v8) / 22);
	local v10 = CFrame.Angles(0, math.rad(math.random(0, 360)), 0);
	v3:SetPrimaryPartCFrame((p2.Main.CFrame + v9) * v10);
	local l__CFrame__11 = v3.PrimaryPart.CFrame;
	for v12 = 1, 1000000 do
		task.wait();
		v3.PrimaryPart.CFrame = (p2.Main.CFrame + v9) * v10;
		if v5 + p3 < tick() then
			break;
		end;
	end;
	v3.PrimaryPart.Sound:Play();
	script.Scare:Play();
	v4:Play(0);
	local v13 = tick();
	local l__CFrame__14 = v3.PrimaryPart.CFrame;
	p1.camShaker:ShakeOnce(5, 6, 0.3, 0.6);
	for v15 = 1, 1000000 do
		task.wait();
		v3.PrimaryPart.CFrame = l__CFrame__14:Lerp(CFrame.new(p1.cam.CFrame.Position + p1.cam.CFrame.LookVector * 0.35, p1.cam.CFrame.Position), (l__TweenService__1:GetValue((tick() - v13) / 0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.In)));
		if v13 + 0.2 < tick() then
			break;
		end;
	end;
	p1.camShaker:ShakeOnce(3, 24, 0, 1);
	local v16 = tick();
	for v17 = 1, 1000000 do
		task.wait();
		v3.PrimaryPart.CFrame = CFrame.new(p1.cam.CFrame.Position + p1.cam.CFrame.LookVector * 0.35, p1.cam.CFrame.Position);
		if v16 + 0.6 < tick() then
			break;
		end;
	end;
	v3:Destroy();
end;

