I've gotten CameraMaxZoomDistance
and CameraMinZoomDistance
to work in some cases, but I've noticed that using it in exactly the same way in other cases doesn't work. For example, my infamous online game restricts the players camera to a nice cozy distance from the character, but when I used the same idea in my Battlefront: Space game, it doesn't do a thing. Here's the basic script used in both games, put as a server script directly into the StarterPack.
--keeps it from running in StarterPack if script.Parent.Name == "Backpack" then wait() script.Parent.Parent.CameraMaxZoomDistance = 20 script.Parent.Parent.HealthDisplayDistance = 0 char.Humanoid.WalkSpeed = 20 wait(1) script:Destroy() end
Is there something that I'm not taking into account that I need to be aware of?