Skip to content

llReplaceAgentEnvironment

Requires Experience
function ll.ReplaceAgentEnvironment(agent_id: string, transition: number, environment: string): number

Replaces the entire environment for an agent. Must be used as part of an experience.

Parameters
agent_id (string)
transition (number)
environment (string)

Add example usage here showing SLua/Luau syntax with ll.ReplaceAgentEnvironment().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.