Hello ScriptingHelpers,
I'm trying to make a map voting system through a gui and store all votes in a intvalue. I.E:
game:GetService("ServerStorage").Folder.MapVotes.Map1 --etc.
With In pairs I got all values from the MapVotes Folder
local Votes= game:GetService("ServerStorage").RoundSystem.MapVotes:GetChildren()
for i,v in pairs(Votes) do
print(v.Value)
end
But now I have trouble with getting the highest value A.K.A The most voted map. Could you guys please help and or explain me how I can get the Highest Value?

4 comments
BTW, if your going to use this in a loop, in the end put Mapvotes = {} to clear the table
Doesnt work. "ServerScriptService.RoundSystem.Script:12: 'then' expected near ','"
Whoops, lemme fix that
fixed