A collection of Python tools designed to enhance your Roblox development experience. With this library, developers can easily manipulate and interact with Roblox assets and game elements, making scripting and automation more efficient.
- Roblox Model Manipulation: Create, edit, and delete models within the Roblox environment using simple Python commands.
- Asset Import/Export: Easily import and export assets like decals, sounds, and meshes to and from Roblox, streamlining your asset management workflow.
- Game Statistics Retrieval: Fetch real-time game statistics such as player counts, game permissions, and leaderboards to monitor your game’s performance.
- Automated Testing: Run automated tests on your game scripts, ensuring that bugs are caught early and performance remains optimal.
To set up the roblox-tools library, follow these steps:
-
Make sure you have Python 3.6 or higher installed. You can download it from python.org.
-
Clone the repository:
git clone https://github.com/Developer/roblox-tools.git
-
Navigate into the project directory:
cd roblox-tools -
Install the required dependencies:
pip install -r requirements.txt
Here’s a simple example demonstrating how to create a new Roblox model:
from roblox_tools import Roblox
# Initialize the Roblox instance with your API key
roblox = Roblox(api_key='your_api_key')
# Create a new model
model = roblox.create_model(name='MyModel')
print(f'Model "{model.name}" created successfully with ID: {model.id}')
# Retrieve game statistics
stats = roblox.get_game_stats(game_id='123456789')
print(f"Current player count: {stats['player_count']}")This project is licensed under the MIT License - see the LICENSE file for details.