Hello.
I’ve been having some trouble with a camera angle-detection system I have. Here is my code:
(LocalScript)
local cam = workspace.CurrentCamera
local ccflv = cam.CFrame.LookVector
if ccflv.Y > .8 then ccflv.Y = .8 end
if ccflv.Y < -.8 then ccflv.Y = -.8 end
Whenever the player is looking directly up, I get the error that “Y cannot be assigned to”
I’ve looked on the forums but all I’ve seen is people getting this error when using positions. We’re talking inequalities here.
I’m not sure if it’s possible to do a comparison with Vector3 values and even if it is I’m clueless on where I’d even begin with that.
Help would be appreciated.