Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[SIMPLE] Why is this camera scriptable position + lookvector not working?

I'm just trying to get the camera to look at something and not have the player able to move the camera around.

local cam 		= game.Workspace.CurrentCamera
local target 	= workspace.CameraTarget
local position 	= workspace.CameraPosition

cam.CameraType = 'Scriptable'
cam.CoordinateFrame = CFrame.new(target.Position, position.CFrame.p)

1 comment

0

Try removing the second parameter. CFrame also accepts vector3 values, so you should be fine

1 answer

CFrame only accepts one value, you can your ~~~~~~~~~~~~~~~~~ Vector3.new(target.Position, position.CFrame.p)

instead!

This discussion is preserved as it was. New answers, comments, and votes are closed.