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

How would I move 2 parts to the same position without them stacking?

Ok say i have Part1 - Size is 1,1,1 CanCollide = false, Anchored = true and Part2 - Size is 2,2,2 CanCollide = true, Anchored = false Part1 is a child of part 2 and i want to move part1 to the position to part2 with a script but they keep stacking. Any ways to fix this or make it better?

wait(0.1)
while true do
	wait(0.01)
script.Parent.Position = script.Parent.Parent.Position
script.Parent.Size = script.Parent.Parent.Size
script.Parent.Orientation = script.Parent.Parent.Orientation
end

1 answer

Position will always stack. CFrame will not.

wait(0.1)
while true do
wait(0.01)
script.Parent.CFrame= script.Parent.Parent.CFrame
script.Parent.Size = script.Parent.Parent.Size
script.Parent.Orientation = script.Parent.Parent.Orientation
end

2 comments

0

it still stacks

0

Put CFrame on last line

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