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

CFrame Lerp isn't working?

I'm trying to do some simple things using CFrame Lerp but it isn't working and it's giving me this error This function is not yet enabled! so down below is my code

SCP = script.Parent.CFrame
script.Parent.Position = script.Parent.Position + Vector3.new(math.random(5),math.random(5),math.random(5))
SCF = script.Parent.CFrame
for i = 0,0.1,1 do
	script.Parent.CFrame = SCF:lerp(SCP,i)
	wait(0.2)
end

1 answer

✓ Accepted answer

First of all, notice that your start CFrame and your end CFrame are the same, so naturally lerp will do absolutely nothing. You've set both of them to script.Parent.CFrame at the beginning of your script.

Second, that error isn't related to this script. ROBLOX Intern Davidii pushed something on accident and so everyone is getting this harmless error.

1 comment

0

thx

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