How do I recreate the old Roblox Camera script?

Hello! I currently need help on a camera script for a 2006 Roblox game I am making. I need this to have :

NO TWEENS, IT GOES UP WHEN IT ZOOMS OUT, AND IT MUST BE ON THE FOLLOW CAMERA TYPE SETTING.

I have tried several ways but I still cant do it.

This is the example I am trying to copy.

Video

Thanks for helping.

1 Like

I will reply to replies tomorrow as I am going to bed. Goodnight : )

If anyone can reply please reply.

I got the same question, still got no idea

Hello there!
If you still need it, I have the solution!

If you do not have the CameraScript at StarterPlayerScripts already:
Play the game, open StarterPlayerScripts and copy “CameraScript”.

Now, you need to choose one of the modules.
It depends on which camera your game uses (Classic, Follow, etc)

In my case, I’m using follow as i’m making a 2009 revival.

Anyways, open the module, and near line 50, add this:

local lastZoom = 0

Now, near line 168, add this:

if lastZoom ~= zoom then
lastZoom = zoom
newLookVector = (newLookVector * XZ_VECTOR).unit
local upY = -math.min(6,zoom * .025)
newLookVector = (newLookVector + (UP_VECTOR * upY)).unit
end

This should do it.
(This script is not mine, credits to MaximumADHD)