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

Help with Camera settings?

Asked by 10 years ago
wait(1)
cam = game.Workspace.CurrentCamera
char = script.Parent.Parent.Character
cam.CameraSubject = char:FindFirstChild("Right Arm")
cam.CameraType = "Follow"

So this is my camera, it basically is a follow cam. I was wondering, how can I set this so it is locked at a specific zoom? This is a localscript in starterpack

0
So This is how I would put it together? wantedfunnybunny2 20 — 10y
0
wait(1) cam = game.Workspace.CurrentCamera char = script.Parent.Parent.Character cam.CameraSubject = char:FindFirstChild("Right Arm") cam.CameraType = "Follow" game.Players.LocalPlayer.CameraMaxZoomDistance = [[3]] game.Players.LocalPlayer.CameraMinZoomDistance = [[3]] wantedfunnybunny2 20 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

You can set a specific zoom in the "Players" settings

game.Players.[[Player]].CameraMaxZoomDistance = [[Number]]
game.Players.[[Player]].CameraMinZoomDistance = [[Number]]
--But since it's a local script we can do
game.Players.LocalPlayer.CameraMaxZoomDistance = [[Number]]
game.Players.LocalPlayer.CameraMinZoomDistance = [[Number]]

Dont forget to +1 :D

Ad

Answer this question