Get ServiceRoblox✎
A Roblox service, as a top-level local. Pure: it needs no execution wire, and asking for the same service twice reuses one local.
Pending review
- needs the Roblox engine — its datatypes, its DataModel or its scheduler
- pure — no execution pins, wire it anywhere
Inputs
- Service:string=
"Players"from a listPick a service, or type one the list has not caught up with. Offers 43 values to pick from, and takes anything else typed in.
Outputs
- service:Players
What it compiles to
luau
local Players = game:GetService("Players") print(Players)
Info
Note where the service went: hoisted to the top of the file, as a hand-written Roblox script would have it.
Not reviewed yet