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

How do i make a part appear on the surface of another part?

The only thing i could think of was setting the position of one part to the same position as another part but how do i make one part appear on the surface of the other?

1 comment

0

Set part1 to the position of part2 but offset the position by part2's size / 2 on any axis.

1 answer

Hello, my name is TheOnlySmarts, and I think I might have the solution to your problem.

Pretty much just do :

local part1 = locationhere -- the location of where the part will be ( for e.g. workspace)
local part2 = locationhere

part2.Position = part1.Position + Vector3.new(0, 0, 0) -- change these numbers to your wanted value(e.g. 0, 5, 0)

Hopefully this helps you. Also, make sure if you want the parts to connect inside one another part, turn off CanCollide for each parts. Or one part, depends.

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