How do you put the end of the face of a model on the table

Untitled

I try tons of Cframe and Vector3 put my math skill is bad

Well, the size divided by 2 for the object on the left is where you’re bottom and top are going to be.
And if your table is a model with the PrimaryPart set.

You should be able to do this

leftObject.CFrame = (tableModel:GetPrimaryPartCFrame() + Vector3.new(0, tableModel.PRIMARY_PART_NAME_HERE.Size.Y / 2, 0)) --Tried it with .PrimaryPart.Size, etc, and it errored in studio. 
  * CFrame.new(0, leftObject.Size.Y / 2, 0);

1 Like

Thank you, I did a bit of revision and it worked :smiley:

local item = game.ReplicatedStorage.Items.IronBar:Clone() --Items, Is A Model
local ItemHolder = clickDetector.Parent.Parent.ItemHolder   --Table Face, if you wonder
item.Parent = workspace --put in a folder later
item:SetPrimaryPartCFrame(ItemHolder.CFrame +CFrame.new(Vector3.new(0,ItemHolder.Size.Y/2,0))* Vector3.new(0, item.PrimaryPart.Size.Y / 2, 0))
1 Like

As long as the concept worked and you got how to use it!

Glad I could help!

1 Like