Camera not moving

My camera position wont change

local CurrentCamera = workspace.CurrentCamera
CurrentCamera.CameraType = Enum.CameraType.Fixed
CurrentCamera.CFrame = CFrame.new(workspace.CameraPart.Position)

The issue is that the camera just doesnt go to the camerapart

1 Like

Is the camera set to fixed? Make sure that it is set to fix, it might be custom because that’s what happens when the character spawns.

It is set to fixed
2nd line
30chars

I know, I was just asking to confirm that it is set to fixed on play. I tried your script, it does not set the camera to fixed for me. Are you sure that it is set to fixed when you test?

It isnt set to fixed
Its literally like the script doesnt do anything

Make the camera type Scriptable

1 Like

Ok ill try that
Still doesnt work

You can use Player.CharacterAdded event to connect a function, then set it to fixed.
it should look like this:

local player = game:GetService("Players").LocalPlayer
local CurrentCamera = workspace.CurrentCamera
player.CharacterAdded:Connect(function()
     wait()
     CurrentCamera.CameraType = Enum.CameraType.Fixed --Your script here.
     CurrentCamera.CFrame = CFrame.new(workspace.CameraPart.Position)
end
2 Likes

Oh i did something
I put it in a localscript and it works

Thanks for the help everyone

1 Like

If you want to make it simple. Do this:

while task.wait() do
	local Camera = game.Workspace.CurrentCamera

	Camera.CameraType = Enum.CameraType.Scriptable

	Camera.CFrame = CFrame.new(workspace.CameraPart.Position)
	break
end

It works perfectly well.

Of course, it only works for Client Side, not Server Side. If you put the script to Player’s Character or PlayerGui, it will work perfectly fine.