Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variables
- local azul = game.Teams.Azul --Equipo
- local rojo = game.Teams.Rojo --Equipo
- local neutral = game.Teams.Neutral --Equipo
- local jugadoresA = {"Player1"} --Jugadores equipo Azul (nombres de los usuarios)
- local jugadoresR = {"Player2"} --Jugadores equipo Rojp (nombres de los usuarios)
- local jugadoresN = {"Player3"} --Jugadores equipo Neutral (nombres de los usuarios) [Para aƱadir mas jugadores a los equipos haz esto] --> {"Player1", "Player2", "Player3"}
- --Script
- game.Players.PlayerAdded:Connect(function(player)
- if table.find(jugadoresA, player.Name) then
- player.Team = azul
- elseif
- table.find(jugadoresR, player.Name) then
- player.Team = rojo
- elseif
- table.find(jugadoresN, player.Name) then
- player.Team = neutral
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement