Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I move the camera to the camera part?

Asked by 6 years ago

I'm trying to make the camera face the player's HumanoidRootPart, but it doesn't work. when I click play, the camera stays still, and doesn't face the player's humanoidrootpart from the camera subject at all.

cam = camera, camerapart is the part I want the camera to be attached to

cam.CameraType = Enum.CameraType.Scriptable
CameraPart.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(20,5,1)
cam.CameraSubject = CameraPart
CameraPart.CFrame = CFrame.new(CameraPart.Position,Player.Character.HumanoidRootPart.Position)
cam.Focus = CFrame.new(Player.Character.HumanoidRootPart.Position)
0
also when I change the camera to anything other than scriptable it works, but I don't want the player to be able to pan the camera. 88BlackRose 5 — 6y

Answer this question