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

I need help with this 2 lerps script, and I can't seem to fix it?

Asked by 5 years ago

Hello everyone. Today I encounter a very strange thing with :lerp()

Here's the script:

local CFrameLerp = clone.Torso.CFrame:lerp((clonett.CFrame*CFrame.new(0,1,0)),i) clone.Torso.CFrame = CFrameLerp wait() local CFrameLerpDown = clone.Torso.CFrame:lerp((clonett.CFrame*CFrame.new(0,-1,0)),i) clone.Torso.CFrame = CFrameLerpDown

So, what's weird about this? Yes, the first line: clone.Torso.CFrame = CFrameLerp works just fine. Now, the second line: clone.Torso.CFrame = CFrameLerpDown doesn't "lerp", but instead act like a CFrame.new() command. Anyone have any idea and what's the solution to this?

0
sorry the lines of the code is broken MineBlow111 39 — 5y
0
and :Lerp also didnt work MineBlow111 39 — 5y

Answer this question