Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I don't get this problem.(I'm trying to make a case opening thing)?

Asked by 6 years ago
Edited 6 years ago

``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)
0
the second paragraph thing is the part of the script that doesn't work mikethezombiekiller1 5 — 6y
0
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 F_lipe 135 — 6y
0
Raritytimes may not exist or it could be capitalized wrong Chez_Guy 67 — 6y

Answer this question