lloyAlloy on GitHub
R6Character
Docs

R6Character

Updated
R6Character
import { R6Character } from "@alloy/std/roblox"

function on_spawn(character: R6Character)
    local torso = character.Torso
    local arm = character["Left Arm"]
end

The character a player spawns on the R6 rig: a Model with HumanoidRootPart, Head, Torso, and the four limbs as a Part? each, Humanoid with its Animator and HumanoidDescription, BodyColors, and the Animate and Health scripts. The limb names carry a space, so an index reads them: character["Left Arm"].

Player.Character types as R6Character? when [roblox] rig = "R6" in alloy.toml, or when the editor's alloy-luau.rig setting says so. R15Character is the default rig.