So now that my previous camera issue was fixed, I made a double luck gamepass and then i encountered a new error
ServerScriptService.GenerationHandler:49: invalid argument #2 to 'random' (interval is empty)
Piece of code that is not correctly working:
local chance
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.UserId, 230210415) then
chance = math.random(1, raritychance.Value / 2)
else
chance = math.random(1,raritychance.Value)
end
Broken line: chance = math.random(1, raritychance.Value / 2)