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

How to get the position of the middle of a part?

I started with this but the part just spawned somewhere not in the middle:

local source = script.Parent
local part1 = Instance.new("Part", workspace)
part1.Name = "Test"
part1.Position = Vector3.new(source.Position.x /2,source.Size.y+source.Size.y, source.Position.z / 2)

I wanted to use the midpoint formula but I don't really know how to get the corners of a part either.

1 answer

✓ Accepted answer

The position of the middle of a part is simply part.Position

1 comment

0

Wow. I feel REALLY dumb now.

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