So I made myself a custom part tweening engine. Which works (for the most part), but I want to get it to work with CFrame so the block can clip through objects, however, I can't seem to make it CFrame comaptible, It'll keep returning errors like "CFrame expected, got Vector3" or "Got Table" etc, etc.
This is the script.
local parttomove = script.Parent
local parttomoveto = script.Parent.Parent.pto
function move()
local tar = parttomoveto.Position
local cur = parttomove.Position
for i = 1,100 do
wait()
parttomove.Position = cur + (tar-cur) * 0.1
cur = parttomove.Position
end
end
script.Parent.ClickDetector.MouseClick:connect(move)

1 comment
You are literally doing parttomove.Position, not parttomove.CFrame.....