Hello everyone!
So, I am making a plugin for Adonis which grabs a bunch of data from the Adonis API, and places it into a complex table in _G.PTP (server side).
The thing is, the plugin MUST be a module script so Adonis can use it, and the script hides in nil as soon as the game starts. I also have another script that detects changes on the characters of players in game (also server side), and compares it with the values inside of said table, and may occasionally set a value of the table to nil.
However, other scripts such as teleport buttons also need to write to the table when somebody teleports, and there are a lot of said scripts.
Is it practical to use a global table for this? Are there better alternatives? It does not matter if any other server script has access to the table, I just want to know if this method is reliable enough for data transfer with a maximum delay of 5 seconds.
Thank you!