-- example for roblox studio within a module script. local VotingModule = { Maps = {} } --// get three maps within this function then put it inside of the maps table within VotingModule function VotingModule:GetMaps() local mapsFolder = game:GetService("ServerStorage"):FindFirstChild("Maps") local mapsIcons = game:GetService("ServerStorage"):FindFirstChild("Icons") local maps = {} repeat local chosen: Model = mapsFolder[math.random(1, #maps)] --local found = table.find(maps, chosen) if not VotingModule.Maps[chosen.Name] then VotingModule.Maps[chosen.Name] = { ["Instance"] = chosen, ["Icon"] = mapsIcons:FindFirstChild(chosen.Name), ["Votes"] = 0 } end until #maps == 3 end return VotingModulelocal myTable = {"Hello", "World", "Lua"} print(myTable[1]) --Outputs: "Hello" print(#myTable) --Outputs: 3 because we have 3 values in our table print(myTable[math.random(1, #myTable)]) --Outputs a random value in our table!