I have my intermission and my round timer functioning, but I want to add a map vote that would be added onto the intermission/timer. I also need people to be teleported to the most voted map. I already have the part you step on which adds the vote. I just need it to teleport you to the most voted map when the intermission ends.
Uploading: image.png…You can just add a ObjectValue that will hold the most voted map.
Then you can make a table the will comprise all maps need to be voted.
Assuming you already know how to add value to the count.
Next, loop through the table that hold all maps and check if the map’s votes are greater than all other past values.
Once the voting season is done, return the highest value from the table and check which map meet the highest then you can override the ObjectValue’s value to the most voted map and check for it in a server script then teleport all players to that map.
Don’t forgot to clear the table out when the round is done.
How are votes currently being cast and is the system in place working?
To vote for something you have to step on a part. Above that part there is a image that will show which map it is. I don’t know how to make the votes go toward that map, and to make it teleport you to that map. Finally I need it to go with the intermission and round timers. Sorry if it’s long, but I need help.
Just detect when a player is touching the part, when they do, add them to a table. Do that to every map and count them up, check which has most and load in the map!
my post may help!