Camera Manipulation Not working?

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

Make sure it’s a localscript inside StarterPlayer and the part is named “CameraPart”.
You don’t need to define the character and the player in this case.

local Camera = workspace.CurrentCamera

repeat wait()
	Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable

Camera.CFrame = workspace.CameraPart.CFrame

Just tested and it worked.

1 Like

It doesn’t work for me for some reason? Not sure if it’s a studio bug.

This script works.

local RunService = game:GetService("RunService")
 
local target = workspace:FindFirstChild("Part")
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
 
local function Camera()
	camera.CFrame = CFrame.new(target.Position)
end
 
RunService.RenderStepped:Connect(function()
	Camera()
end)
1 Like

Are you trying to make a camera that moves with a moving part?