Basically this script rotates the camera around a ship you view. For the most part it works, but halfway through the ship the camera will glitch out and chop from side to side of the ship. How can I stop this? (The script bellow is in a loop)

camera.CFrame = eblimp:GetPrimaryPartCFrame():lerp(camera.CFrame,0.2)* CFrame.Angles(0, angle, 0) *CFrame.new(0,0,blimp:GetExtentsSize().Z)+Vector3.new(0,eblimp:GetExtentsSize().Y/2,0) 
 
angle = angle + math.rad(1)

Here's a twitter video showing what this does: https://twitter.com/its_me_klc/status/730457476345122816

3 comments

0

It's because of lerp.

0

How can I fix it? I use lerp for when the model changes size. That way camera will smoothly pan in/out

0

?