Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 1.1 KB

File metadata and controls

14 lines (12 loc) · 1.1 KB

PolytoriaServerIP

Fetches the IP info of Polytoria servers.

The script will automatically create a NetworkEvent in ScriptService on server startup, which can be invoked by clients to fetch server IP information. An example script can be found in the demo folder.

Config

Configuration can be found by opening the script and changing the constants.

Name (Type) Description
URL (string) The URL to send the HTTP request to (must return JSON). Uses IPinfo's JSONP API by default.
SEND_OPTIONS ({string}) The information that should be sent to the client. The array can contain any key returned by URL.
START_DELAY (number) The duration to wait before attempting to send HTTP requests.
RETRY_DELAY (number) The duration to wait before retrying a failed HTTP request.
DISABLE_IN_CREATOR (number) Whether or not this script will run during local playtesting. Enabled by default for privacy reasons.