Try it in your browserpreview Source

Local PlayerRoblox✎

The player this client belongs to. Client-only: it is nil on the server, and Roswaal says so if the script is not a LocalScript.

Pending review

Local Player
  • needs the Roblox engine — its datatypes, its DataModel or its scheduler
  • pure — no execution pins, wire it anywhere

Outputs

  • player:Player

What it compiles to

Script StartLocal PlayerGet PropertyInstanceNamePropertyPrintValue
The graph this output was compiled from.
luau
local Players = game:GetService("Players")

print(Players.LocalPlayer.Name)

Info

The Players service is reached for you, and hoisted the same way — no Get Service node needed. Used in a Script rather than a LocalScript, this compiles fine and is nil at runtime, so Roswaal warns instead.

Not reviewed yet