Hi there! I am trying to make an increased chance gamepass! My idea was that if they have the gamepass it puts you in the table in twice, but this doesn't work and i'm not really sure! Any help will be great! Thanks!


function ChoosePlayers()
	local list = {}
    local id = 103728213
	for i,v in pairs(game.Players:GetPlayers()) do
		if Game:GetService("GamePassService"):PlayerHasPass(v, id) then
			list = list + v + v -- if they have the gamepass, put them in the table twice
			else list = list + v -- if they don't have the gamepass just put them in once
			
		end
	end
end

2 comments

0

Try table.insert. I would put a script but I am getting lagged off my PC

0

I think it's the list = list + v + v part that is not working - i wasn't exactly sure on how to put the players with the gamepass in twice - anymore help would be great :)