Well, we aren’t exactly going to spoonfeed code, but you can do it something like this:
local max = 20
local barriers = 0
This essentially sets up the initial varaibles.
local max = 20
local barriers = 0
tool.Activated:Connect(function()
if barriers < max then
barriers = barriers + 1
-- Do code to clone it and position it.
end
end)
You don’t put the tools in the team. You need to script it so it gives it to the people on certain teams. You can do this with PlayerAdded and Player.Team.