local ballChances = {
RedBall = 70,
BlueBall = 95,
GreenBall = 100
}
for i,v in pairs(ballChances) do
newBallGui.BallText.Text = "RNG: "..tostring(2 ^ (table.find(ballChances,i) - 1))
end
I tried to make the script short, but the index is equal to greenball or redball. but in the text I need the position of that ball, not the chance value, the index position in the table.