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

How would I make this Lerping script move the part slower?

I was looking thru lerping things but I dont understand how to make it slower, what number would I increase / decrease?


	local Lerper1 = script.Parent.Plane
local Lerper2 = script.Parent.InvsBarrier

for i = 0,1,.01 do

 wait()

 Lerper1.CFrame = Lerper1.CFrame:Lerp(Lerper2.CFrame, i)
 
end
 

1 answer

✓ Accepted answer

You can either lower the increasement (or something idk) number or increase the wait, for example:

local Lerper1 = script.Parent.Plane
local Lerper2 = script.Parent.InvsBarrier

for i = 0,1,.001 do -- was 0.01, now 0.001

 wait(.1) -- was wait(), now wait(.1)

 Lerper1.CFrame = Lerper1.CFrame:Lerp(Lerper2.CFrame, i)

end

hope that helped

1 comment

0

thank you so much!

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