Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Lerping is laggy when started to moving?

Asked by 4 years ago

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.

0
nice game Haker902c 18 — 4y
0
Include the full script if you want help with it. SteamG00B 1633 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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

Ad

Answer this question