How do I make my camera move smoothly when attached to a part?
I have a simple car and then there is a part called LocalCam which has a WeldConstraint on the car and I want the camera to be at the same position as that part and in my script I know why it is not smooth but I just do not know any other ways to fix it.
01 | local Player = game.Players.LocalPlayer |
02 | local Character = Player.Character or Player.CharacterAdded:Wait() |
03 | local Camera = game.Workspace.CurrentCamera |
05 | Camera.CameraType = Enum.CameraType.Scriptable |
08 | if Camera.CameraType ~ = Enum.CameraType.Scriptable then |
10 | Camera.CameraType = Enum.CameraType.Scriptable |
16 | while wait(. 0000000001 ) do |
17 | Camera.CFrame = game.Workspace.LocalCam.CFrame |