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

Help! Camera Manipulation Limit???

Asked by
Anubizx 76
7 years ago

Hi, can anybody teach me how to set a camera manipulation limit? For example: My currently camera is at a Model but i want set the limit that you can scroll your mouse.

My currently code:

cam.CameraSubject = game.Workspace.Camera2
cam.CameraType = "Attach"
cam.CoordinateFrame = CFrame.new(1485.333,3444.659,-9139.552)
cam.Focus = CFrame.new(1494.948,3446.06,-9148.231)

This camera type just can move up and down... i want make it rotate but without move the camera forward or anything like it.

0
Use cam.CFrame instead of cam.CoordinateFrame. cam.CoordinateFrame was deprecated in favor of CFrame MrLonely1221 701 — 7y

1 answer

Log in to vote
0
Answered by
mattscy 3725 Moderation Voter Community Moderator
7 years ago

If you set the CameraType to Track, and then set the CameraMaxZoomDistance to the same value as the CameraMinZoomDistance, the camera should be locked to that distance away from the subject. If the Track CameraType doesn't work, the Custom one should.

Ad

Answer this question