This functionality is only available to roblox-ts users. This is not possible in regular Luau.
This method uses a transformer called
rbxts-transform-guid and is quite experimental.
Once installed, you will need to configure it in your tsconfig.json under
Then if you want to create remote ids, you create a
const enum like such:
uuid is important here, it's what tells our transformer to convert our enum values to guids at compile time.
Then in your definition file you can use it as such:
Then you can use it as such: