so, i am trying to make a meeting/exams/class place, and i want to be able to assign people with their name. I have already tried this technique:
function setTeam(player, teamName) newPlayer.TeamColor = game.Teams[teamName].TeamColor if newPlayer.Character then
end
end
setTeam(game.Players.epicly2000, "?Academy?") setTeam(game.Players.proimaaz153, "?Academy?")
if someone could help me with this problem, it'd be greatly appreciated. Thank you!
--// Set up Variables local academy = game:GetService("Teams").Academy --// When player joins game.Players.PlayerAdded:connect(function(player) -- when the player spawns player.CharacterAdded:connect(function(character) if player.Name == "epicly2000" then -- if their username is epicly2000 player.Team = academy -- their team is set to academy end end) end)
It seems the system you're attempting to use is overly complex, however I can't ensure the above will work as I haven't been able to test it.