Make Camera face a Part

Hello. I want to be able to force the player’s camera to look at the position of a Part. It shouldn’t be rotated, it should be level with the part but still facing it. Any ideas on how to approach this? I have never manipulated a player’s camera before and I would like some help.

What is it for? I may be a able to help but it depends on the way you wanna use it, I made one in the past if you want i can rework it for you and send it

you can do some thing like

workspace.currentCamera.Cframe = CFrame.LootAt(workspace.currentCamera.Cframe.Position, Part.Position)

ofc you can apply this to whatever ur doing @goofylamb83 i also recommend looking up camera manipulation

It is for dialogue, for all the characters for my game. I want the camera to face the NPC. I would also like to tween it so that it is smooth, but I might be able to do that myself. Hope this helps.

Oh i see, sadly i dont think ive made that in the past, BUT!
i have a pre-made camera system, hope this will help you

a LocalScript → StarterPack

local Player = game.Players.LocalPlayer

local Character = Player.Character or Player.CharacterAdded:Wait()

local Camera = workspace.CurrentCamera

repeat wait()

Camera.CameraType = Enum.CameraType.Scriptable

until Camera.CameraType == Enum.CameraType.Scriptable

Camera.CFrame = workspace.CameraPart.CFrame

and Make sure you have a camera in the workspace for my case its “CurrentCamera” but you can rename it to whatever you’d like
image

If you have issues, as Salad said, Camera Manipulation will help you

CAMERA MANUPULATION is good also you probably will still use the look at function or you can make a trans part infront of the npc facing the npc and then you can tween the cam to that make sure your camera type is scriptable

also you cant ask people for systems you may be in trouble

well @xvywop did exactly what i suggested

2 Likes