Reached a roadblock in my development of my game

Basically, I’ve been trying to make an election system for my game, where a president is chose each time the president team is empty. The only issue left is one I simply cannot get past. You see, my idea is that people will choose whether or not to be a candidate in the election, which they can decide by clicking a UI button during each election; I’m just not sure how to go about getting the names of the players who’ve decided to become candidates. I have a localscript which adds the name of the player who clicked the UI button to a table, but I just don’t how I would communicate each player’s table through a remotevent to the server without messing something up.

Any ideas on how to do this would be very appreciated.

Directly fire the remote event when the UI button is clicked. On the .OnServerEvent add the player to a table then for loop through it and add each player to the frame

1 Like

I don’t know much about for loops, but I get the main idea. I’ll look into for loops and try your solution.
Thank you!

1 Like