Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make the camera unPANable?

I'm making a game where a Camera must follow a car, so I made this script.


Car = script.Parent.Chiron.Chassis

game.Workspace.CurrentCamera.CameraSubject = Car
game.Workspace.CurrentCamera.CameraType = "Attach"

It Works,the camera follows and attached to the car.however,the camera can be pan up and down but not left and right.

How do I make the camera so it can't be panned,so it just follows the car?

P.S - Sorry for bad english.

2 comments

0

Put CameraType to Fixed instead of Attach

0

Nope , That just make the Camera even more Pannable (360° )

1 answer

Car = script.Parent.Chiron.Chassis

game.Workspace.CameraMaxZoom = 'Your number here'
game.Workspace.CameraMinZoom = 'Same number as above'

3 comments

0

Oh sorry,I realized you meant if you don't want the camera to be moveable... I can't help with that tho...

0

This Doesn't Work.

0

Works with me if you make it a LocalScript and insert it to Workspace

This discussion is preserved as it was. New answers, comments, and votes are closed.