IsNearCoords
Check if the player is near to a coords
| Argument | Data Type | Needed | Default | Description |
|---|---|---|---|---|
Coords | vector3 | - | The coords | |
Radius | number | - | The distance to check | |
Sphere | boolean | false | Draw a sphere of the radius |
Returns
| Data Type | Description |
|---|---|
| boolean | If is in the radius |
Dont need to be called every frame
Example
local near = IsNearCoords(vector3(0.0,0.0,0.0), 10.0)