Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Problems with CameraZoomDistance?

Asked by 10 years ago

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?

0
And a couple of unrelated updates later, and even where it did work isn't working now. Any ideas, or should I just give up of camera manipulation? deaththerapy 60 — 10y

Answer this question