CameraMinZoomDistance on Camera Subjects

I’ve created a globe and want to rotate the palyers camera around it using camera.CameraSubject. This works, but it starts zoomed straight into the globe, and i set min distance yet it still doesn’t change anything no matter the value.

local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local userInputService = game:GetService("UserInputService")

local globe = workspace.Map.Map:WaitForChild("Globe")

camera.CameraSubject = globe

local globeRadius = globe.Size.Y / 2
player.CameraMinZoomDistance = 5
player.CameraMaxZoomDistance = 25
player.CanLoadCharacterAppearance = false

camera.FieldOfView = 45

I suggest that you don’t use that, it’s better to make your own simple camera system for it.

1 Like