Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I am trying to lerp my camera for smoothening effect, but it does nothing?

Asked by 2 years ago
Edited 2 years ago

So I want my camera to be smooth like for example in game 3008, here is my script and would be thankful if someone explains it to me why it does not work


local runService = game:GetService("RunService") runService.RenderStepped:Connect(function(deltaTime) -- use deltaTime if you want it to depend on player FPS workspace.CurrentCamera.CFrame:Lerp(workspace.CurrentCamera.CFrame, .1) end)

3008 is not best example but if there is any way to make my camera smooth, i will accept it.

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

You are getting the camera's original position + not doing anything with it. :Lerp() does not change anything, it returns a value.

By the way, what do you mean when you say "make my camera smooth"?

Pardon me if my understanding is wrong, I saw that nobody answered and so I just searched what lerp does.

Post I referred to

Ad

Answer this question