So this script gives the players in the list the tool of " local gear "
But from the moment I try to ad the part where if the player is in a specific team the player won't get the tool and in another specific team they will get the tool it breaks..
local players = {"player", "player", "player"} --I know I have to change it into the real names
local gear = game.ServerStorage.ReverseDual
game.players.playerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
for i = 1, #players do
if players[i] == plr.Name and players.Team == "The Jedi Order" or "Raiders" then
gear:Clone().Parent = plr:WaitForChild("Backpack") == true
game.players.playerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(chr)
for i = 1, #players do
if players[i] == plr.Name and players.Team == "Shadows" or "Temple Guard" then
gear:Clone().Parent = plr:WaitForChild("Backpack") == false
end
end
end)
end)
Thanks in advance

1 comment
Thanks! also thanks for explaining it I haven't worked with giving players specific gears yet only with team gear etc.