I need help from other scripters knowledge for this game I been working on for years now

I have been working on this one game I been wanting to develop for years now but I had some scripting barriers that I solved most of them by now in my 5 years of developing in Lua I remade this game about 4 times now and I can’t find a solution to make the script more effective Let me go more into details so my game is about a round-based game where two teams go at it the two teams have team health and the team health is at the tree once the tree health reaches 0 there will be no more spawns and once a team is empty the other team wins the game this is the simple part of the script that I can do easy as pie but this is when my scripting barrier happens I want to add a feature in my game where you can build portion sides of the base and once you build all 4 sides a new slide will be opened that will show you the next era age here is the example of my GUI


if you are confused by my concept please ask questions
now let me get into more details it seems all simple on paper but this GUI will have to work for 2 different teams along with show separately what era you are on for your team and go back to era[1] if the round ends now for my question how will this be sorted in an efficient way for scripting hopefully this is understandable

anyone help in anyways that will help me get closers to my goal will be appreciated if any questions please ask them

If I am understanding the game correctly then you need to store all this information on the sever and use remote events to communicate with the client on what to display on the gui. Then when the player interacts with the gui send a remote to the server to validate and then update the information.

Cant really be more specific as im not sure exactly where you are stuck? What have you attempted so far.

1 Like

Yes this is related to it I am stuck on how would I check if each portion of the pre-built base is bought then go to the next slide in order of progression [era1,era2,era3]

In a server script create a variable that will keep track of each teams base. This variable could be table that hold information about the different sides of the base such as if it has been built, who built it etc. Then send this information to the team member with remotes events and use it to create your gui.

When a player use the gui to built part of the base send a remote and update your table holding the base information and resend it to all the players on that team. You could also do some validation here to make sure people are not cheating.

1 Like