I keep on getting an error message saying ServerScriptService.Spawn/Move:162: attempt to index nil with 'CFrame' when I try to run this code
Name.Focus.CFrame.X = Name.Head.CFrame.X -- The error message is on the first line
Name.Focus.CFrame.Y = Name.Head.CFrame.Y + CFrame.new(0,2,0)
Name.Focus.CFrame.Z = Name.Head.CFrame.Z + CFrame.new(0,0,5)

4 comments
A CFrame had ten numbers. It doesn't work like this. Consider watching a youtube tutorial on CFrame as its a bit of a complicated topic to understand.
k
But shouldn't I be able to just take the x y and z values of CFrame?
The positional component of a Coordinate-Frame consists of a Vector3 datatype. You must use one accordingly to adjust the value.