/roblox-skills:roblox-teleport-matchmakingfrom roblox-skills
Implements multi-place teleport flows, reserved/VIP server management, retry logic, and matchmaking for Roblox games. Use when building lobbies, match servers, dungeons, or party systems.
Ships in roblox-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fully open, Limited to same universe, or
Secure within universe only (only server-initiated teleports into non-start places — recommended
for progression gates and test places). Clients can otherwise teleport themselves anywhere in the universe.--!strict
local TeleportService = game:GetService("TeleportService")
local ATTEMPTS = 5
local RETRY_DELAY = 1
local FLOOD_DELAY = 15
local function safeTeleport(placeId: number, players: { Player }, options: TeleportOptions?): (boolean, any)
local ok: boolean, result: any = false, nil
for _ = 1, ATTEMPTS do
ok, result = pcall(function()
return TeleportService:TeleportAsync(placeId, players, options)
end)
if ok then
break
end
task.wait(RETRY_DELAY)
end
if not ok then
warn("Teleport failed:", result)
end
return ok, result
end
-- A teleport can still fail after TeleportAsync succeeds: retry transient failures.
TeleportService.TeleportInitFailed:Connect(function(player, teleportResult, errorMessage, placeId, options)
if teleportResult == Enum.TeleportResult.Flooded then
task.wait(FLOOD_DELAY)
elseif teleportResult == Enum.TeleportResult.Failure then
task.wait(RETRY_DELAY)
else
warn(`Invalid teleport [{teleportResult.Name}]: {errorMessage}`)
return
end
safeTeleport(placeId, { player }, options)
end)
return safeTeleport
TeleportOptions (set at most one of ReservedServerId, VipServerId, ServerInstanceId, or it errors):
ReservedServerId = HttpService:GenerateGUID(false) → a reserved server (private, developer-created)
— ideal for matches, dungeons, and parties. The first teleport with a new GUID creates the server; reusing
the same GUID (store it in a DataStore/MemoryStore) sends more players to it. Generate GUIDs on the server.
On arrival, game.PrivateServerId equals that GUID.VipServerId = id → a player's VIP server (its game.PrivateServerId), usable with any place in the
experience. Carry the id in teleport data to keep a VIP group private across places (VIP → match → VIP);
handle TeleportInitFailed (server closed, full, or player not allowed).ServerInstanceId = jobId → a specific public server (e.g. "join friend's server"). Find friends with
LocalPlayer:GetFriendsInUniverseAsync() (client, LocalPlayer only) → { User, PlaceId, GameId }, where
GameId is the JobId string; Player:GetFriendsInServerAsync() returns friends' Players in this server.
pcall both; hidden online status means they're omitted.SetTeleportData(table) → non-secure data readable on arrival with player:GetJoinData().TeleportData
(server) or TeleportService:GetLocalPlayerTeleportData() (client). Clients can tamper with it:
never trust it for currency, items, or permissions — use DataStores/MemoryStores keyed by user ID
or by the reserved server's PrivateServerId.Deprecated: Teleport, TeleportToPlaceInstance, TeleportToPrivateServer, TeleportPartyAsync,
TeleportToSpawnByName → TeleportAsync + TeleportOptions. ReserveServer/ReserveServerAsync,
ShouldReserveServer, and ReservedServerAccessCode → ReservedServerId (old access codes still work).
--!strict
local HttpService = game:GetService("HttpService")
local TeleportService = game:GetService("TeleportService")
-- New reserved match server; returns its id so more players can be sent later.
local function teleportToNewMatch(placeId: number, players: { Player }): string
local serverId = HttpService:GenerateGUID(false)
local options = Instance.new("TeleportOptions")
options.ReservedServerId = serverId
TeleportService:TeleportAsync(placeId, players, options)
return serverId
end
return teleportToNewMatch
ReservedServerId GUID) before teleporting; the match server reads
game.PrivateServerId on start and loads its config.TeleportService:SetTeleportGui(gui) (client, before teleport) keeps a loading screen
up across the transition; use ReplicatedFirst loading screens on arrival.TeleportAsync works in Studio Test and Team Test without publishing, for every supported teleport
type and with no code changes. Studio tools (server view, Device Simulator, debugger) and MCP playtest
automation carry over across the teleport. Its players parameter is typed {Player} under --!strict.
| Server | game.PrivateServerId | game.PrivateServerOwnerId |
|---|---|---|
| Public | "" | 0 |
Reserved (ReservedServerId) | non-empty (the GUID) | 0 |
| Private (VIP) server | non-empty | owner's user id |
game.ServerRegion is the IATA code of the hosting datacenter (e.g. "IAD", "SYD") for region-aware
matchmaking and analytics.
roblox-data-stores), or use
Roblox matchmaking to fill public servers.TeleportAsync
all players with ReservedServerId = guid (the match server reads its config via game.PrivateServerId).ServerInstanceId).Default matchmaking scores eligible public servers by signals (friends, latency, language, age group, occupancy...) and picks the highest weighted sum. You can customize it per place in Creator Hub:
PlayerElo), configured in the matchmaking settings.MatchmakingService:SetServerAttribute(name, value) (e.g.
GameMode, ServerLevel); InitializeServerAttributesForStudio for testing.game:BindToClose for shutdown saves; game.JobId identifies the server; soft shutdowns after updates
(Open Cloud :restartServers or "Restart servers for updates") teleport players to fresh servers.{ jobId, players, mode } into a MemoryStore sorted map
(TTL) — see roblox-data-stores.roblox-data-stores (session locking, MemoryStore queues), roblox-security (access control),
roblox-game-systems (round loops), roblox-open-cloud (server restarts).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub el4cteo/roblox-skills --plugin roblox-skills23 skills in this plugin
/roblox-analytics-liveopsAnalytics and live ops - AnalyticsService economy/funnel/onboarding/progression/custom events, player segments, experience configs via ConfigService, A/B experiments, badges, experience notifications, timed events, daily rewards, season passes. Use when instrumenting a game, tuning economy or onboarding, running A/B tests or feature flags, or planning live events and re-engagement./roblox-architectureRoblox project structure and client/server model - replication, where code and assets belong (ServerScriptService, ReplicatedStorage, StarterPlayer), RunContext, service/controller bootstrapping, player/character lifecycle, CollectionService components, attributes, streaming-safe client code, library choices. Use when starting a project, deciding where code goes, or fixing replication/streaming bugs./roblox-audioSound and music - the Audio API (AudioPlayer, AudioEmitter, AudioListener, AudioDeviceOutput, Wire, effects, faders), classic Sound/SoundGroup, 2D vs 3D audio, music and SFX volume, client vs server playback, asset permissions, streaming caveats, voice routing, text-to-speech. Use when adding music, sound effects, spatial audio, mixing, or fixing sounds that don't play./roblox-characters-animationCharacters and animation - Humanoid properties/states, spawning (LoadCharacterAsync), health and damage, HumanoidDescription appearance, Animator/AnimationTrack playback, priorities and markers, default animation replacement, Tools, TweenService, IKControl, Character Controller Library (beta). Use when changing movement, abilities, damage, respawn, avatars, animations, tweens, or tools/weapons./roblox-code-reviewReview Roblox/Luau code for exploits, data loss, memory leaks, performance problems, lifecycle bugs, policy issues, and deprecated or superseded APIs, using a severity-ranked checklist and the full 2026 deprecation map. Use when reviewing a PR or script, auditing a game before launch, modernizing legacy code, or asked what is wrong with some Roblox code./roblox-data-storesPersistence and cross-server data - DataStoreService (UpdateAsync, retries, budgets, limits), session locking with ProfileStore, schema migrations, OrderedDataStore leaderboards, MemoryStore queues/sorted maps/hash maps, MessagingService, right-to-be-forgotten. Use when saving player data, building leaderboards or queues, or fixing data loss, duplication, or throttling.Other plugins' skills for the same job