Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nnaridz/RbxGenie/llms.txt
Use this file to discover all available pages before exploring further.
Description
Searches the Roblox marketplace for free models and inserts the top result into the game. Automatically positions the model in front of the camera and handles naming conflicts.Endpoint
Parameters
The search query for finding the model (e.g., “tree”, “car”, “sword”)
The path to the parent instance. Defaults to
Workspace if not specified.Response
Returns
true if the model was inserted successfullyThe name assigned to the inserted model
The class name of the inserted instance (e.g., “Model”, “Folder”)
The Roblox asset ID of the inserted model
The full path to the inserted instance
Error message if the search or insertion failed
Behavior
Positioning
- Models: Positioned via
PivotTo()at the camera raycast point - BaseParts: Positioned via
Positionproperty - Other: Inserted without position adjustment
Naming
- Query is converted to TitleCase (e.g., “cool tree” → “CoolTree”)
- If name exists, appends a number (e.g., “Tree1”, “Tree2”)
Multiple Objects
- If asset contains multiple objects, they’re wrapped in a Model or Folder
- Uses Model if any object is a PVInstance, otherwise uses Folder
Examples
Insert a tree
Insert into a specific parent
Name conflict handling
No results found
Marketplace search failed
Notes
- Only searches free models (no paid assets)
- Inserts the top search result
- Positioning uses a raycast from the center of the camera viewport
- Fallback position is 20 studs in front of the camera if no surface is hit
- Models are inserted at the raycast hit point or fallback distance