I’m currently working on an Old style Roblox game and I need to know on how to remove the camera zoom in/out tween? I currently don’t have any scripts for these as I do not know how to remove the easing of the camera zoom in/out.
im sorry, but do you mean like zooming in and out in a roblox game?
1 Like
Yeah, as to remove the tween of the camera zoom in/out function.
uh if you want to completely remove the zooming in / out you can do it by going into the properties of StarterPlayer
in the Explorer and changing the MaxZoomDistance
2 Likes
Thanks! [ Something to fill this part in lol ]
if smoothly then you can do
--localscript
game:GetService('TweenService'):Create(
game.Players.LocalPlayer,
TweenInfo.new(2,Enum.EasingStyle.Quint,Enum.EasingDirection.InOut,
{CameraMaxZoomDistance=0}):Play()
wait(2)
game.Players.LocalPlayer.CameraMode=Enum.CameraMode.LockFirstPerson
2 Likes
For the people who want the actual answer!!!
- Get yourself a copy of the ‘PlayerModule’ script from your PlayerScripts when playtesting
- When out of playtesting, paste it into game.StarterPlayer.StarterPlayerScripts
- Go into the script editor for PlayerModule.CameraModule.ZoomController
- Change the variable: ‘ZOOM_ACCELERATION’ to anything above 0.5 or negative
use numbers bellow around 0.075 if you want to experiment with zoom speeds and changing ‘ZOOM_STIFFNESS’ will change the easing for mobile pinch zoom with higher numbers being more rigid