I have a script that moves a part to a specific CFrame relative to another parts CFrame. this works well except for one thing, I want to be able to ignore rotation and only have the part maintain its position instead, here's the script:
local pos = script.Parent.Part.CFrame:ToObjectSpace(script.Parent.Part2.CFrame)
while true do
wait()
script.Parent.Part2.CFrame = script.Parent.Part.CFrame:ToWorldSpace(pos)
end
I tried replacing all CFrames with position, but vector3 is not a valid member of toworld/toobject space.

2 comments
I think :vectorToWorldSpace(Vector3) will help you, it will offset the position and ignore the rotation.
Or maybe you can use :pointToWorldSpace() depend on your problem.