Try it in your browserpreview 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