``I tried to take of "times" but that didnt work so im just stuck at this point.It says Players.mikethezombiekiller1.PlayerGui.CasesGUI.CasesLocalScript:19: attempt to preform arithmetic on upvalue 'Raritytimes' (a table value)
for i,v in pairs(game.ReplicatedStorage.Items:GetChildren()) do
local rarnumber = Raritytimes[v.Rarity.Value] or 1
local mathmatical = math.max(Raritytimes+Chance)
for i = 1,mathmatical do
table.insert(items,v)

3 comments
the second paragraph thing is the part of the script that doesn't work
make sure you properly format your posts in order for people to easily interpret your questions and code. For any lua code please use the lua block formatter
Raritytimes may not exist or it could be capitalized wrong