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

Help with CFrame?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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).

0
yes, but, i want to move part1 to part2's position killerkill29 35 — 9y
Ad

Answer this question