Passing Table's (Script to Script)

How could I go about passing one table full of users to another script

Example;

ServerScript 1 > Table > Send To ServerScript 2

Depends what type of script you want to pass the data to. You could use a remote event or a remote function for server → local or local → server however if you rather do it server → server or local → local then your best bet would be to use a bindable event or function.

Another way would be to store it inside of a module script where it can be easily accessed.

I have tried using a Bindable-Function

Im doing Script to Script
(serverscripts)

You can either do two things, Bindable events or global variables.

To make a variable global you can say “_G.TABLENAME”
Ex: _G.TestTable = {}

You can then access that from another script using _G.TestTable

1 Like