Group Weapon Receiver

Hello! I have a script, and I don’t know how to continue. So, I want it, when someone joins a group, he will receive one or more weapons from a table.
Can you tell me how to do it?

local groupWL = {
[“Sigma”] = {
groupID = 292993 – id placeholder
tools = {
game.ServerStorage.Tool
}
}

1 Like

Here you go:

local groupWL = { 
	["Sigma"] = {
		groupID = 292993, -- id placeholder
		tools = {
			game.ServerStorage.Tool
		},
	},
}

game:GetService("Players").PlayerAdded:Connect(function(Player)
    for i, v in pairs(groupWL) do
        if Player:IsInGroup(v.groupID) then
            for i, v in pairs(v.tools) do
                v:Clone().Parent = Player.Backpack
            end
        end
    end
end)
1 Like