I’ve been doing a zoom in scrollbar thing for my camera and I wanted to add tweens to it, but I am not sure if tweens can be used this way, because you will scroll very quickly a lot to the point where the tween goal changes while the tween is still running. I’ve done a couple of things to try and solve it like put it in a spawn function, cancel the tween and then play it but this still messes up my code and it doesn’t scroll properly. Am not even sure if this is the intended use of tweens and I might have to use RenderStepped but there could be a way with tweens so this is why I am asking.
spawn(function()
if cameraTween then
cameraTween:Cancel()
end
cameraTween = tweenService:Create(camera,cameraTweenInfo,{CFrame = camera.CFrame * CFrame.new(0,0,zoomIncrement)})
cameraTween:Play()
end)