I would want to take out the permission and add in a 1 person per spawn.
I'm trying to help a friend out here.
print ("1 Person Spawn Script Loaded")
permission = {"NAME"}
function person(name)
for i = 1,#permission do
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end
function onPlayerEntered(newPlayer)
print("Person Spawned")
local human = newPlayer:findFirstChild("Backpack")
if (human ~= nil ) then
if (person(human.Parent.Name)) then
human.Parent.TeamColor=script.Parent.TeamColor
end
end
end
game.Players.ChildAdded:connect(onPlayerEntered)
