GetWorldClosestPlayer
Return the closest player, and the all founded player
| Argument | Data Type | Needed | Default | Description |
|---|---|---|---|---|
Radius | number | - | The radius that being checked |
Returns
| Data Type | Description |
|---|---|
| player | The closest player |
| table | All the founded player |
Dont need to be called every frame
Example
local closest, allplayer = GetWorldClosestPlayer(5.0)