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

How do you make a zooming in script?

OK, so really I'm not that good at scripting, but I know a few scripts. But this is one I want and need to know;

How do you make a script that, when you spawn, zooms a player in automatically?

At the moment I've added a 'Zoom in to play!' script, but some players don't know how to zoom in, also iPad players cannot zoom in. It'd really help me if you answered my question!!!

~Legodudezx

4 answers

✓ Accepted answer

Players have a property called CameraMode Set this to Enum.CameraMode.LockFirstPerson and they won't be able to leave it.

5 comments

0

But they will be able to click escape and leave, right?

0

Yes

0

Whoops, thanks for that Edit Kenetec

0

No problem.

0

Thank you for the help, Andalf.

The Camera's coordinates and orientation are defined by the CoordinateFrame property of the camera. It works just like a CFrame, so if you want to zoom in, you just have to "bring forward" this CFrame using its LookVector, like this :

Cam = game.Workspace.CurrentCamera
Cam.CoordinateFrame = Cam.CoordinateFrame + Cam.CoordinateFrame.lookVector

Could you provide the script?

However, I won't be the one to answer this problem.

1 comment

0

Sorry, I haven't started on the script. I just want to know how to make a script that zooms a player in.

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