- What do you want to achieve? Keep it simple and clear!
I want to achieve a GUI map voting system, where the amount of placed votes from the players for each map is displayed under the corresponding map.
- What is the issue? Include screenshots / videos if possible!
After the first round or the second round in my game is completed, the system seems to break for a for me unknown reason.
Below you can see a video of what is happening.
(Skip to 0:47 to immediately see the bug.)
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I couldn’t find anything specific to the problem I’m experiencing.
I have already made sure the votes are destroyed from each map after every round.
I will provide the roblox file for the game for you to see yourself as the system is too interconnected to put everything in this post.
SpleefGame.rbxl (161.7 KB)
The relevant scripts are found in the StarterGui under the “Voting” ScreenGui and in every TextButton and TextLabel it contains. Aditionally the system contains scripts which are in the ServerScriptService and named “OnVote” and “SetVotingSystem”
The voting count works by scanning the length of the folder the votes are placed in and putting the result in the text of the text label everytime after someone has voted.
Inside of each map (which you can see in ReplicatedStorage under the folder “AllMaps”) there is a folder where the votes are placed in. The votes represented by BoolValues which are named after the player who has voted.
After every round has started three maps out of all the maps will be randomly selected and put in the “PossibleMaps” folder in ReplicatedStorage, these maps will then be displayed in the voting GUI.
I hope it isn’t too complicated to help me with it.