So i am trying to make the player first person during the round, than third person during lobby, however i would have to scroll zoom back during the lobby in order to get the third person due to the camera not setting.
local function StartRound(round, Map)
Player.CameraMaxZoomDistance = 0.5
end
local function EndRound(round)
player.CameraMaxZoomDistance = 5
end
Typed this up untested due to not having Studio on me atm, but could you try setting the CameraMinZoomDistance to a zoomed out value when the round ends, say 2.5, and then immediately set it back to 0.5?
Something worth noting…
Use a triple backtick (```, the key which is usually found to the left of the “1” key, not an apostrophe) at the start and end of where your code starts? It helps with readability. Also read this guide on code formatting etiquette. The code you posted would look like this:
local function StartRound(round, Map)
Player.CameraMaxZoomDistance = 0.5
end
local function EndRound(round)
player.CameraMaxZoomDistance = 5
end
Set the player’s minimum camera zoom distance to something like 10 - 12, then when a round starts set their CameraMode property to Enum.CameraMode.LockFirstPerson. After the round change it back to Enum.CameraMode.Classic. This should work for you.