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

CFrame Lerp isn't working?

Asked by 8 years ago

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

Log in to vote
1
Answered by
Unclear 1776 Moderation Voter
8 years ago

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.

0
thx gaberdell 71 — 8y
Ad

Answer this question