local f={}local function V(f,V)local X=V.getPlayerRank(f)if X~=0 then f.CharacterAdded:Connect(function()for V,X in pairs(script:GetChildren())do(X:Clone()).Parent=f.Backpack end end)for V,X in pairs(script:GetChildren())do(X:Clone()).Parent=f.Backpack end end end function f.loadServer(f)(game:GetService("\080\108\097\121\101\114\115")).PlayerAdded:Connect(function(X)V(X,f)end)for X,n in pairs((game:GetService("\080\108\097\121\101\114\115")):GetChildren())do V(n,f)end end return f
-- A very simple module that only gives the included tools to people inside of the groupID.
-- Just place the

local module = {}

local function dostuff(p, core)
	--print("new player")
	local rank = core.getPlayerRank(p)
	--print(rank)
	if rank ~= 0 then
		p.CharacterAdded:Connect(function()
			--print("new char")
			for i, v in pairs(script:GetChildren()) do
				v:Clone().Parent = p.Backpack
			end
		end)
		-- for first spawn
		--print("first spawn")
		for i, v in pairs(script:GetChildren()) do
			v:Clone().Parent = p.Backpack
		end
	end
end

function module.loadServer(core)
	--print(core)
	game:GetService("Players").PlayerAdded:Connect(function(p)
		dostuff(p, core)
	end)

	for i, v in pairs(game:GetService("Players"):GetChildren()) do -- first load
		dostuff(v, core)
	end
end

return module
