This script is used to add an item to a players backpack once they are on a certain team but when ever I test it it always adds 4 items instead of only 1.
local Tools = {
["Assassins"] = game.ServerStorage.Tag,
}
while true do
wait(5)
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
plr.Changed:connect(function()
if plr.Team == game.Teams.Assassins then
Tools.Assassins:Clone().Parent = plr:WaitForChild("Backpack")
end
end)
end)
end)
end

4 comments
check the backpack for the item before adding it, if its there return nothing
What should i put to check i'm stuck on that part
it might work fine if you just get rid of the while loop. i dont know why its there.
yeah you don't need the while loop