Hi there, does anyone know how I could use the table called "Names" in a print from a remote event? This is what the local script sends. Thanks :)
1 | RemoteEvent:FireServer( "ListOfNames" , Names) |
you can just literate through the table from the server if that's what your looking for, like this:
1 | --server |
2 |
3 | RemoteEvent.OnServerEvent:Connect( function (player,ListOfNames,table) |
4 | if ListOfNames = = "ListOfNames" then |
5 | for i,v in pairs (table) do |
6 | print (i,v) --prints the index and value of it |
7 | end |
8 | end |
9 | end ) |
, also you cant directly print a table, so you could just loop over it using a generic for loop