Everytime the player “spins” they keep ending up with last value in the table, even tho everything has a percentage.
["Star Platnium"] = {
["Percent"] = 1,
["Skin"] = {}
},
["Whitesnake"] = {
["Percent"] = 10,
["Skin"] = {"Female"}
},
["The World"] = {
["Percent"] = 1,
["Skin"] = {"Female"}
},
["Kathastrophe"] = {
["Percent"] = 10,
["Skin"] = {}
},
["C-Moon"] = {
["Percent"] = 10,
["Skin"] = {}
},
local x = getWeights()
local rand = R:NextNumber(0,x)
for i,v in pairs(List) do
rand -= v["Percent"]
if rand < 0 then
Selected = i
end
end