I am trying to make a top down camera script yet it is not working. The error is on line 13 and the error message is:
Players.adieking1.PlayerScripts.CameraScript:13: invalid argument #2 (Vector3 expected, got CFrame)
Script:
game:GetService("ControllerService"):ClearAllChildren()
repeat wait() until game.Players.LocalPlayer.Character
local char = game.Players.LocalPlayer.Character
local cam = game.Workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable
cam.FieldOfView = 70
Spawn(function()
while true do
game:GetService("RunService").RenderStepped:wait()
cam.CoordinateFrame = CFrame.new(char.HumanoidRootPart.Position + Vector3.new(5, 10, -5) , char.HumanoidRootPart.Position)+ CFrame.Angles(0,0,0)-- Please note that the Angles part is for after the script works so I can adjust it then.
end
end)
Please ask if you need any more information.

6 comments
Hm. Never heard of CoordinateFrame; I assume it's CFrame. Have you tried using 'cam.CFrame'?
I will try
Just tested it, it has the same effect as cam.CoordinateFrame
Still getting errors?
From what I understand, you are trying to cram CFrame value into an argument that requires a Vector3 value, the part I see that mismatches is your "+ CFrame.Angles(0,0,0), removing that seems to fix the issue, or so it seems, not sure what end result you are expecting.
Posted a fix.