So… I’m getting the same error as before for no reason. Even though i changed nothing of it.
Broken piece of code:
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 230210415) then
if raritychance.Value > 1 then
chance = math.random(1, raritychance.Value / 2) --ServerScriptService.GenerationHandler:129: invalid argument #2 to 'random' (interval is empty)
else
chance = math.random(1, raritychance.Value)
end
else
chance = math.random(1, raritychance.Value)
end