The code works perfectly as intended, but when I type CFrame alone, the script highlights it blue, because it thinks you’re trying to use CFrame.new or something, but I’m trying to define the property I want to tween in the camera.
If you have any suggestions or solutions, please comment them down. Thank you.
It’s an issue us all scripters if you are editing in Roblox studio editor, for eg iirc it also happens for typing which is annoying beyound belief to see my types being colored like a rainbow
That wouldn’t work afaik and will prolly throw an error. Seems you like you just have to ignore it for now, but you can always edit the code in VS Code using plugins like ROJO
No the way studio’s editor works is that it highlights certain datatypes (CFrame, string, UDim, UDim2, Vector3, Vector2, Instance, table). These are reserved keywords meaning that developers shouldn’t really name their variables this. However it’s impossible to not use it in some cases like yours.