Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Lerping is laggy when started to moving?

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.

2 comments

0

nice game

0

Include the full script if you want help with it.

1 answer

I fixed it.It's about the loop that I made.

This discussion is preserved as it was. New answers, comments, and votes are closed.