You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want the transition back to the players camera to be WAYYYY smoother than it is now.
EX. Watch C__Users_conno_Downloads_movement_commission.rbxl - Roblox Studio 2024-04-27 21-40-00 | Streamable -
What is the issue? Include screenshots / videos if possible!
When the player leaves the ledge with spacebar the camera SNAPS right back to the original view. I either want to smooth it down OR make it so the view stays where it was cframed to. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried to lower the lerp position to .05 but it does not affect the camera going outwards.
--This is what handles the cameras position and how smooth it is coming in
cameraPosBeforeLedge = camera.CFrame:ToObjectSpace(rootPart.CFrame)
cameraDistance = (camera.CFrame.Position - rootPart.Position).Magnitude
camera.CameraType = Enum.CameraType.Scriptable
RunService:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, function()
local cframe = rootPart.CFrame * CFrame.new(0, 10, 15) --Where the camera is placed
camera.CFrame = camera.CFrame:Lerp(CFrame.new(cframe.Position, rootPart.Position), .1) --Smoothness of camera
end)