In-Game Tracking
Creating an exporter
If you’re using multiple scripts for your Activity Tracking Events, you’ll need to create an exporter module to ensure instance persists across scripts. Please follow the instructions below:
1
Navigate to your ServerScriptService.
2
Create a Module Script named ActivityExporterModule
3
Use this code snippet in your new module script
4
To use the module in your order handler script
Require the module in your Loader Script, and init
the module as normal.
In all locations where you want to use the module for event tracking, simply require the exporter module. You only need to run init
in one location.