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

Global tables

Asked by 10 years ago

I really am eager to learn about this topic. My question is how would I store data into a Global Table and organize it then send it to like a text label or something.

What should I know before hand? What methods/functions should I do?

Examples?

1 answer

Log in to vote
1
Answered by 10 years ago
_G.Data = {}
table.insert(_G.Data, "String")

Here we make a Global Table the we store a StringValue inside of the global table.

remember global tables can only be made inside a server-script.

2
Global tables can also be created in LocalScript. These tables cannot be used by the server, but they can be used by any other legitimate LocalScript. AxeOfMen 434 — 10y
0
Thanks for the help guys! :) IntellectualBeing 430 — 10y
Ad

Answer this question