Hello.I made a lerping script for my game.But when I move It lerps it laggy.Any help would be good.
function renderLoop()--looped with a renderstepped() function. local tablet = cam.Tablet swayOffset = swayOffset:Lerp(cam.CFrame * CFrame.new(0,-1.2,-0.3),.2)--The CFrame is where the tablet is going to be in the camera. tablet:SetPrimaryPartCFrame(swayOffset) end
Im also going to give the link of the place so you can test yourself.
I fixed it.It's about the loop that I made.