How to move camera

  1. What do you want to achieve? Keep it simple and clear!

I want to be able to set the player’s camera position easily.

  1. What is the issue? Include screenshots / videos if possible!

I have three methods, changing Camera.CFrame.Position, that just doesn’t work at all. Camera.CFrame, which also doesn’t want to work. And the one that was closest of all Camera.Focus, Camera.Focus does move the camera but it doesn’t do it how I want it to, it also looks at the position that it is going to.

All I need to do is set the position of the camera, but none of these just set the positon

3 Likes

before you set the camera’s CFrame you need to change the CameraType to Scriptable

local Camera = workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable

if you want it to later go back to normal then set it back to Custom

1 Like

ohh this makes sense, I just kept it on fixed and thought it would have no difference, thank you!

I did a function for that, here is the script :

local plr = game:GetService("Players").LocalPlayer
local Camera = game:GetService("Workspace").CurrentCamera

local function setcam(part)
	Camera.CameraType = "Scriptable"
	Camera.CFrame = part.CFrame
end

--setcam(YOUR PART LOCATION)
1 Like

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