local zoomed = LocalPlayer.state.zoom
if zoomed then
-- Do stuff when zoomed
else
-- Do stuff when not zoomed
end
local usingFreeCam = LocalPlayer.state.freecam
if usingFreeCam then
-- Do stuff when using free cam
else
-- Do stuff when not using free cam
end