Can somebody help me it always gives me an error message that says "Camera. is not found" how do I fix this

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ItsXj

Code:$Camera.rotate_y(deg2rad(-event.relative.x * mouse_sensitivity))

:bust_in_silhouette: Reply From: kidscancode

$Camera is the same as get_node("Camera"), which means “get a child node named ‘Camera’”. It seems likely that “Camera” is not a child of the node you have this script on, so you need the correct path to the node.

Note, you can drag a node from the SceneTree into the scripting window and it will paste the node’s path.