Overview
The SkyTeamModule allows airline games to integrate with the SkyTeam alliance platform. This module handles client-server communication, API authentication, and real-time event synchronization.Prerequisites
Before integrating the module, ensure you have:- A ROBLOX game with HTTP requests enabled
- An API token from SkyTeam (contact alliance administrators)
- TypeScript/roblox-ts setup (recommended) or Luau
Installation
Enable HTTP Requests
Enable
HttpService in your game settings:- Open Game Settings in ROBLOX Studio
- Navigate to Security
- Enable “Allow HTTP Requests”
Add the Module
Place the SkyTeamModule in your game’s
ServerScriptService or import it via your package manager:Configure the Module
Create a new instance of the module with your settings:
apps/models/src/loader/main.server.ts
Store your API token securely. Never commit tokens to version control.
Configuration
Settings Interface
The module accepts aSettings object with the following properties:
apps/models/src/module/index.ts
| Property | Type | Required | Description |
|---|---|---|---|
TOKEN | string | Yes | Authentication token provided by SkyTeam |
Flags | string[] | Yes | Array of feature flags for experimental features |
API Endpoint
By default, the module connects to:Module Architecture
Server-Side Components
The module creates the following components when initialized:- RemoteEvent - Named
.SKYTEAM_CLIENT_RUNTIMEin ReplicatedStorage - Client Scripts - Automatically distributed to PlayerGui for each player
- HTTP Service Testing - Validates that HTTP requests are enabled
Client Communication
The module uses a typed event system for client-server communication:apps/models/src/module/shared/CommunicationTypes.d.ts
Error Handling
The module includes built-in error handling for common issues:HTTP Service Not Enabled
If HTTP requests are disabled, players will receive aSERVER_INIT_ERROR event:
apps/models/src/module/index.ts
Late-Joining Players
Players who join after an initialization error will still receive the error notification:apps/models/src/module/index.ts
Best Practices
Secure Token Storage
Secure Token Storage
Never hardcode your API token in scripts. Use environment variables or secure configuration systems:
Error Monitoring
Error Monitoring
Monitor the
InitalizationError property to detect issues:Feature Flags
Feature Flags
Use feature flags to enable experimental features or airline-specific functionality:
Testing
Test your integration in ROBLOX Studio:- Start a local server test
- Check the Output window for initialization messages
- Verify the RemoteEvent exists in ReplicatedStorage
- Test with HttpService disabled to verify error handling
Troubleshooting
| Issue | Solution |
|---|---|
| Module fails to initialize | Verify HTTP requests are enabled in game settings |
| ”Invalid API key” errors | Check that your TOKEN is correct and active |
| Client scripts not loading | Ensure the module script contains a client child |
| RemoteEvent not found | Verify Initialize() was called after construction |
Next Steps
API Integration
Learn how to use the SkyTeam API from your game
Discord Setup
Connect your airline to Discord notifications