Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do you pass a table amongst other scripts?

Asked by
Ripull 45
10 years ago

Is it possible?

Currently I have a ServerScript that does work with DataStores to form a table with gathered information. I now want to pass this information to a LocalScript, and I was hoping I could get info here on how to do this.

Thanks.

2 answers

Log in to vote
0
Answered by 10 years ago

_G.TableName = {}

Ad
Log in to vote
-1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

I would make a string value and put the table in that, but it would require some string manipulation skill. I know you can use _G. for global variables, but I'm not sure if they work for tables.

0
I'll try unpack(table) Ripull 45 — 10y
0
Why would you down vote? I'm sorry if I did not help, but I tried to help with the extent of my knowledge. It seems it would be better for me if I did not try to help at all. Perci1 4988 — 10y

Answer this question