How do i put myself on team owner?
COMMUNITY QUESTION
How to put people on a team? (CERTAIN PEOPLE)
1 answer
Here's some code I wrote, I'm not sure if it will work:
a = game.Players:GetChildren()
game.Players.PlayerAdded:connect(function()
for i,v in pairs(a) do
if v.Name == "groovydino" then
v.TeamColor = BrickColor.new("Really Red") --Change really red to whatever teamcolor the "Owner" team is
else
v.TeamColor = BrickColor.new("Medium Stone Grey") --Default player teamcolor
end
end
end)
If that doesn't work, let me know, but it should. Just drop that script into the Workspace and it should work.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
The definition of
amust occur upon the event, rather than just initially.