Skip to main content

wait_until_in_game

Function wait_until_in_game 

Source
async fn wait_until_in_game(
    runtime: &Runtime,
    secret: &Secret,
    account_id: u64,
    stop: impl Fn() -> bool,
)
Expand description

Waits until Roblox reports account_id in game, stop returns true, or QUEUE_TIMEOUT passes. An account that was already in game counts as joined at once, because Roblox keeps reporting its old server until the new client takes over.