canaryThese pages document the canary: an unreleased build. What they describe may not be in the version you have, and may change before it is.The stable build
Try it in your browsercanary Source

Get Player From CharacterRoblox✎

Wire Get Service (Players) in. Returns nil for a character with no player behind it.

Pending review

Get Player From CharacterPlayersCharacter
  • needs the Roblox engine — its datatypes, its DataModel or its scheduler
  • pure — no execution pins, wire it anywhere
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • Players:Instancemust be wired
  • Character:Instancemust be wired

Outputs

  • result:Player?

What it compiles to

luau
print(players:GetPlayerFromCharacter(character))

Not reviewed yet