-- Script GUID: {A9313008-ED82-4E7E-86EA-83A84F627A60}
-- Decompiled with the Synapse X Luau decompiler.

local v1 = {};
function ScreenShake()
	return true;
end;
local u1 = require(game.ReplicatedStorage.Modules:WaitForChild("CameraShaker"));
local l__CurrentCamera__2 = workspace.CurrentCamera;
local l__LocalPlayer__3 = game.Players.LocalPlayer;
function v1.SmallBump(p1)
	if ScreenShake() == true then
		if typeof(p1) ~= "Vector3" then
			p1 = p1.Position;
		end;
		local v2 = u1.new(Enum.RenderPriority.Camera.Value, function(p2)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p2;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p1).Magnitude <= 20 then
			v2:Start();
			v2:Shake(u1.Presets.Bump);
		end;
	end;
end;
function v1.TinyShake(p3)
	if ScreenShake() == true then
		if typeof(p3) ~= "Vector3" then
			p3 = p3.Position;
		end;
		local v3 = u1.new(Enum.RenderPriority.Camera.Value, function(p4)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p4;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p3).Magnitude <= 20 then
			v3:Start();
			v3:Shake(u1.Presets.Bump);
		end;
	end;
end;
function v1.TinyShake3(p5)
	if ScreenShake() == true then
		if typeof(p5) ~= "Vector3" then
			p5 = p5.Position;
		end;
		local v4 = u1.new(Enum.RenderPriority.Camera.Value, function(p6)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p6;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p5).Magnitude <= 100 then
			v4:Start();
			v4:Shake(u1.Presets.Bump2);
		end;
	end;
end;
function v1.TinyShake4(p7)
	if ScreenShake() == true then
		if typeof(p7) ~= "Vector3" then
			p7 = p7.Position;
		end;
		local v5 = u1.new(Enum.RenderPriority.Camera.Value, function(p8)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p8;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p7).Magnitude <= 100 then
			v5:Start();
			v5:Shake(u1.Presets.Bump2);
		end;
	end;
end;
function v1.TinyShake5(p9)
	if ScreenShake() == true then
		if typeof(p9) ~= "Vector3" then
			p9 = p9.Position;
		end;
		local v6 = u1.new(Enum.RenderPriority.Camera.Value, function(p10)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p10;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p9).Magnitude <= 100 then
			v6:Start();
			v6:Shake(u1.Presets.Bump4);
		end;
	end;
end;
function v1.Bump(p11)
	if ScreenShake() == true then
		if typeof(p11) ~= "Vector3" then
			p11 = p11.Position;
		end;
		local v7 = u1.new(Enum.RenderPriority.Camera.Value, function(p12)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p12;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p11).Magnitude <= 40 then
			v7:Start();
			v7:Shake(u1.Presets.Bump2);
		end;
	end;
end;
function v1.Explosion(p13)
	if ScreenShake() == true then
		if typeof(p13) ~= "Vector3" then
			p13 = p13.Position;
		end;
		local v8 = u1.new(Enum.RenderPriority.Camera.Value, function(p14)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p14;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p13).Magnitude <= 125 then
			v8:Start();
			v8:Shake(u1.Presets.Explosion);
		end;
	end;
end;
function v1.StrongExplosion(p15)
	if ScreenShake() == true then
		if typeof(p15) ~= "Vector3" then
			p15 = p15.Position;
		end;
		local v9 = u1.new(Enum.RenderPriority.Camera.Value, function(p16)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p16;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p15).Magnitude <= 125 then
			v9:Start();
			v9:Shake(u1.Presets.StrongExplosion);
		end;
	end;
end;
function v1.SmallExplosion(p17)
	if ScreenShake() == true then
		if typeof(p17) ~= "Vector3" then
			p17 = p17.Position;
		end;
		local v10 = u1.new(Enum.RenderPriority.Camera.Value, function(p18)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p18;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p17).Magnitude <= 125 then
			v10:Start();
			v10:Shake(u1.Presets.Explosion2);
		end;
	end;
end;
function v1.CamShakeBig(p19)
	if ScreenShake() == true then
		if typeof(p19) ~= "Vector3" then
			p19 = p19.Position;
		end;
		local v11 = u1.new(Enum.RenderPriority.Camera.Value, function(p20)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p20;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p19).Magnitude <= 125 then
			v11:Start();
			v11:Shake(u1.Presets.Explosion);
		end;
	end;
end;
function v1.CamShakeBig2(p21, p22)
	if ScreenShake() == true then
		if typeof(p21) ~= "Vector3" then
			p21 = p21.Position;
		end;
		local v12 = u1.new(Enum.RenderPriority.Camera.Value, function(p23)
			l__CurrentCamera__2.CFrame = l__CurrentCamera__2.CFrame * p23;
		end);
		if (l__LocalPlayer__3.Character.HumanoidRootPart.Position - p21).Magnitude <= (p22 or 125) then
			v12:Start();
			v12:Shake(u1.Presets.Explosion2);
		end;
	end;
end;
return v1;