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

Help with CFrame?

How would I add 2 CFrame values?

game.workspace.Part1.CFrame = CFrame.new(game.workspace.Part2.Position + -1,0,-1)

this doesnt work, how would I do this?

1 answer

✓ Accepted answer

EDIT: I misunderstood your question the first time. Let me try again.

part1.CFrame = part2.CFrame + Vector3.new(-1, 0, -1)

This should change part1's CFrame to part2 as well as add Vector3.new(-1, 0, -1).

1 comment

0

yes, but, i want to move part1 to part2's position

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