I have a table, and I am wondering how I can get the result form it.
items = {
{chance = 5, item = ChestItems:WaitForChild("Pickaxe")}
}
I know I can simply do items.chance, but how do I get the chance of a specific chosen item, from this:
Item = chooseItem():Clone()
Item.Parent = Player.Backpack
chooseItem() is a function which randomly chooses an item from items using the 'chance' as a percentage on getting it.
So I was wondering how I could use the 'chance' from the clone'd item. So I could do this:
if chance <= 5 then
Any help would be appreciated.
