The idea behind this is to have the camera attached to the ship. You are the ship basiclly, so I have the camera’s CFrame being set to the humanoid root part’s CFrame + an offset (as you’ll see) every RenderStepped.
The problem is that the ship is jumping around (the ship is controlled by BodyMovers and if there is a better way, please do tell me.).
Here is a video if the issue.
I’ve tried using Stepped rather then RenderStepped and lerping it (setting the alpha to like .3x60xThe time (in seconds) that has elapsed since the previous frame).
Here is the current code (excluding unneeded stuff)
game:GetService("RunService").RenderStepped:connect(function()
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = Engine.CFrame:ToWorldSpace(currentOffSet) --Engine is the HumanoidRootPart
--currentOffSet is just CFrame.new(0,15,50)
end)