I have multiple four folders filled with their own items. Common, Uncommon, Rare, and Legendary. I want to implement the weights into the "BeltRarities" table. I'm not sure if I would do something like
{{Common, CommonWeight], {Uncommon, UncommonWeight}}
or something but when I tried this I think I must have done it incorrectly.
local CommonWeight = 75
local UncommonWeight = 50
local RareWeight = 25
local LegendaryWeight = 5
local TotalWeight = 0
Button.MouseButton1Click:Connect(function()
print("Opened Package")
local Common = CommonBelts[math.random(#CommonBelts)]
local Uncommon = UncommonBelts[math.random(#UncommonBelts)]
local Rare = RareBelts[math.random(#RareBelts)]
local Legendary = LegendaryBelts[math.random(#LegendaryBelts)]
local BeltRarities = {Common, Uncommon, Rare, Legendary}
local Belts = {BeltRarities[math.random(#BeltRarities)]}
for i,v in pairs(Belts) do......

2 comments
Explain please.
Bump