ElementsAdvanced integrations
AddStudioTool
Adds a Roblox Studio-style object or mesh tool with part and placement settings.
AddStudioTool
What it does
Adds a Roblox Studio-style object or mesh tool with part and placement settings.
When to use it
Use it for controlled creation or editing workflows that target Roblox instances.
ElementFunction:AddStudioTool(ToolConfig)
ToolsPage:AddStudioTool({
Name = "Studio Mesh Tool",
Content = "Spawn, select, move, and test parts with a small Studio-style panel.",
Default = false,
PartType = "Block",
Grid = 1,
PartSize = 4,
Anchored = true,
CanCollide = true,
ParentPath = "workspace",
MeshId = "",
TextureId = "",
Callback = function(part)
print("studio part", part and part.Name)
end
})Behavior and return value
Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.