local K=require(script.Parent.CameraShakeInstance)local l={Bump=function()local l=K.new(2.5,4,.1,.75)l.PositionInfluence=Vector3.new(.15,.15,.15)l.RotationInfluence=Vector3.new(1,1,1)return l end;Explosion=function()local l=K.new(5,10,0,1.5)l.PositionInfluence=Vector3.new(.25,.25,.25)l.RotationInfluence=Vector3.new(4,1,1)return l end;Earthquake=function()local l=K.new(.6,3.5,2,10)l.PositionInfluence=Vector3.new(.25,.25,.25)l.RotationInfluence=Vector3.new(1,1,4)return l end;GentleSway=function()local l=K.new(.65,.08,.1,.75)l.PositionInfluence=Vector3.new(1.2,.35,.05)l.RotationInfluence=Vector3.new(.02,.02,.02)return l end;BadTrip=function()local l=K.new(10,.15,5,10)l.PositionInfluence=Vector3.new(0,0,.15)l.RotationInfluence=Vector3.new(2,1,4)return l end,HandheldCamera=function()local l=K.new(1,.25,5,10)l.PositionInfluence=Vector3.new(0,0,0)l.RotationInfluence=Vector3.new(1,.5,.5)return l end;Vibration=function()local l=K.new(.4,20,2,2)l.PositionInfluence=Vector3.new(0,.15,0)l.RotationInfluence=Vector3.new(1.25,0,4)return l end;RoughDriving=function()local l=K.new(1,2,1,1)l.PositionInfluence=Vector3.new(0,0,0)l.RotationInfluence=Vector3.new(1,1,1)return l end}return setmetatable({},{__index=function(K,c)local F=l[c]if type(F)=="\102\117\110\099\116\105\111\110"then return F()end error("\078\111 \112\114\101\115\101\116 \102\111\117\110\100 \119\105\116\104 \105\110\100\101\120 \""..(c.."\""))end})




local CameraShakeInstance = require(script.Parent.CameraShakeInstance)

local CameraShakePresets = {
	
	
	-- A high-magnitude, short, yet smooth shake.
	-- Should happen once.
	Bump = function()
		local c = CameraShakeInstance.new(2.5, 4, 0.1, 0.75)
		c.PositionInfluence = Vector3.new(0.15, 0.15, 0.15)
		c.RotationInfluence = Vector3.new(1, 1, 1)
		return c
	end;
	
	
	-- An intense and rough shake.
	-- Should happen once.
	Explosion = function()
		local c = CameraShakeInstance.new(5, 10, 0, 1.5)
		c.PositionInfluence = Vector3.new(0.25, 0.25, 0.25)
		c.RotationInfluence = Vector3.new(4, 1, 1)
		return c
	end;
	
	
	-- A continuous, rough shake
	-- Sustained.
	Earthquake = function()
		local c = CameraShakeInstance.new(0.6, 3.5, 2, 10)
		c.PositionInfluence = Vector3.new(0.25, 0.25, 0.25)
		c.RotationInfluence = Vector3.new(1, 1, 4)
		return c
	end;
	
	
	-- A gentle left/right/up/down sway. Good for intro screens/landscapes.
	-- Sustained.
	GentleSway = function()
		local c = CameraShakeInstance.new(0.65, 0.08, 0.1, 0.75)
		c.PositionInfluence = Vector3.new(1.20, 0.35, 0.05)
		c.RotationInfluence = Vector3.new(0.02, 0.02, 0.02)
		return c
	end;
	
	
	-- A bizarre shake with a very high magnitude and low roughness.
	-- Sustained.
	BadTrip = function()
		local c = CameraShakeInstance.new(10, 0.15, 5, 10)
		c.PositionInfluence = Vector3.new(0, 0, 0.15)
		c.RotationInfluence = Vector3.new(2, 1, 4)
		return c
	end;
	
	
	-- A subtle, slow shake.
	-- Sustained.
	HandheldCamera = function()
		local c = CameraShakeInstance.new(1, 0.25, 5, 10)
		c.PositionInfluence = Vector3.new(0, 0, 0)
		c.RotationInfluence = Vector3.new(1, 0.5, 0.5)
		return c
	end;
	
	
	-- A very rough, yet low magnitude shake.
	-- Sustained.
	Vibration = function()
		local c = CameraShakeInstance.new(0.4, 20, 2, 2)
		c.PositionInfluence = Vector3.new(0, 0.15, 0)
		c.RotationInfluence = Vector3.new(1.25, 0, 4)
		return c
	end;
	
	
	-- A slightly rough, medium magnitude shake.
	-- Sustained.
	RoughDriving = function()
		local c = CameraShakeInstance.new(1, 2, 1, 1)
		c.PositionInfluence = Vector3.new(0, 0, 0)
		c.RotationInfluence = Vector3.new(1, 1, 1)
		return c
	end;
	
	
}


return setmetatable({}, {
	__index = function(t, i)
		local f = CameraShakePresets[i]
		if (type(f) == "function") then
			return f()
		end
		error("No preset found with index \"" .. i .. "\"")
	end;
})
