So most of us know what padding is, if you dont an example is…
“You have a part and you want other parts to spawn along one axis of that part equally spaced apart from eachother”

So, I want to do what’s in that example but I cant figure out the math for it Please Help.

Can you explain more? You mean you want to spawn multiple parts equally apart from each other on the same axis?

``````local amount = 100
local part =  --define a part that is in the workspace
local last = part
local spacebetween = 2 --studs apart

for i = 1, amount, 1 do
local clone = part:Clone()
clone.Parent = game.Workspace
local distance = part.Size.X/2 + spacebetween
clone.Position = last.Position + Vector3.new(0,distance,0)
last = clone
end``````

It is better to use the edge of the part when adding the padding. Using the center and giving it 0 padding would create collisions even though padding is 0 not negative. And you probably want to use the Y axis to get the edge since you are adding in the Y axis.

So this would be better:
`local distance = part.Size.Y + spacebetween`
`local distance = part.Size.X/2 + spacebetween`