Zooming a camera

So I have a PC that has some buttons, but people find it hard to see the text on the screen. On some other models in roblox I have seen a button you click and it smoothly zooms in.
I couldn’t use the script on the model I saw as its all obfuscated :roll_eyes: If anyone can help me make one of these please reply below! :grin:

Thanks,
Smartie!

1 Like

Your gonna have to make a camera tween and use ViewportFrame. Here is an API Reference on how to use viewportframe:

ViewportFrame | Documentation - Roblox Creator Hub.

You also are gonna need a basic understanding of camera tweening and the userinput service. Also, the Viewportframe does have a function that allows you to zoom into an object.
Hope this helps.

From,
Aura

Thank you! I’ll get working on that, Thanks again :stuck_out_tongue_winking_eye:

1 Like