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

How do I make a playerlist that doesn't replace the current one?

Asked by 2 years ago

I also want to use a custom name that the player enters earlier on in the game. I have a string value for that name. It is located in playergui.

1 answer

Log in to vote
0
Answered by
Desmondo1 121
2 years ago

You probably want to use _G variables for this

To declare one, you just put _G. followed by a name

so you'd probably just need to use a table that contains all the players names, and declare it as a _G variable so you can access it from anywhere

_G.playerList = {}
0
hmm thank you! FlakeRBLX 0 — 2y
Ad

Answer this question