I'm creating game wheree I want to add to team someone when they joined the game. But how? Wwhen I'm adding myself in Developer team, when I pressed start, my team changed to "Survivor"(this is basic team). Help, please. Script or something else. Also, can I know where I need put script, local or no.
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
if Player.Name == "Fefefefe234" or "YOLOchickenBRO" then
Player.Team = game.Teams.Developers
end

4 comments
You're using "or" incorrectly. "or" takes a condition after it is typed, not a string or type of data.
no
local Player = game.Players:GetPlayerFromCharacter(hit.Parent) if Player.Name == "Fefefefe234", "YOLOchickenBRO" then Player.Team = game.Teams.TEAMCOLOR end
You use Team Colors not teams