Hello I this script I made doesnt work. If someone could make this script for me or help me would be thankful! I try making a script that if a specific player / players join a specific Team called "Staff" gets created and the specific player / players automaticly get assigned to that team.
local Owner = game.Teams.Owner
game.Players.PlayerAdded:Connect(function(player)
if player.Name == "Leonw_Bobo" or "www" then
local RedTeam = Instance.new("Team");
RedTeam.Name = "Staff"
RedTeam.Parent = game.Teams;
RedTeam.TeamColor = BrickColor.Red();
player.Team = Owner
end
end)

2 comments
player.Team should be RedTeam? Why is it Owner
Can I just get a bit more information? I'm not exactly sure what you're trying to achieve here