Unable to assign property CFrame. CoordinateFrame expected, got Instance

Hello i get this error Message and dont know how to fix is.
I tried to find a solution on devforum but could not find it.

Heres the Code:

local cam = workspace.CurrentCamera
wait(5)
cam.CameraType = Enum.CameraType.Scriptable
cam.CFrame = game.Workspace["Cam-Part"]
cam.CFrame = CFrame.lookAt(cam.CFrame.Positon,workspace.FFF.CFrame.Position)

Thanks for Help!

5 Likes

On the 4th line your assigning it to the cam part in workspace and cam part is an instance

4 Likes

I got a new Error after removing L4
Positon is not a valid member of CFrame

2 Likes

Remove the CFrame, only put Position, also you don’t need to remove the 4th line just make it

cam.CFrame = game.Workspace["Cam-Part"].CFrame

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.