Ok, is there a function to get the middle of an acccesory, or an tool?

or do I have to convert it to a Model first and then get the position using GetBoundingBox

1 Like

Not sure what you mean but the accessory/tool part’s position is its center already.

Any physical object in Roblox’s position is at its center.

Uh tools dont have positions, Im not talking about the Handles position either, since my handle isnt in the middle

You’re gonna have to clarify what you mean then because I do not know what you mean by the middle of an accessory or tool.

The position of any object in Roblox will be where its center is undoubtedly, so I do not know what you mean by middle otherwise.

Basically we can get the middle of a mode, using a function, is there a function like this except for tools

What is the middle of a mode?

I meant model sorry

30 chars 30 chars

:GetBoundingBox() then is useful for the model to get its center via CFrame.

local cframe, size = model:GetBoundingBox()

EDIT: Accessories are usually just one part anyways so you’d get the part in the Attachment’s position for center and for tools with multiple parts, you’d just manually make a model then get the bounding box.

There is no built-in method to get the bounding box of a tool. Your best bet would be to get the tool’s Handle, put it in a model, call :GetBoundingBox(), then put the handle back in the tool.