function RecoilSimulator.GetRecoilCFrame(S,T)local E=S.weaponDefinition:GetVerticalRecoilVector()local u=S.rng:NextNumber(E.x,E.y)local y=S.weaponDefinition:GetHorizontalRecoilVector()local J=S.rng:NextNumber(y.x,y.y)return CFrame.fromEulerAnglesYXZ(math.rad(u),math.rad(J),0)end return RecoilSimulator

function RecoilSimulator:GetRecoilCFrame(cameraCFrame)
	local verticalRecoil = self.weaponDefinition:GetVerticalRecoilVector()
	local randomVerticalSpray = self.rng:NextNumber(verticalRecoil.x,verticalRecoil.y) 
	
	local horizontalRecoil = self.weaponDefinition:GetHorizontalRecoilVector()
	local randomHorizontalSpray = self.rng:NextNumber(horizontalRecoil.x,horizontalRecoil.y) 
	
	return CFrame.fromEulerAnglesYXZ( math.rad(randomVerticalSpray), math.rad(randomHorizontalSpray), 0)
end
	
return RecoilSimulator
