So I added on to this script from another question and it doesn't work and it's kinda long. I wanted to see if I could make it shorter. Essentailly the admins get put on the lapiz team and they spawn in a certain position. However it doesn't work and it a bit long. Any help or improvements that will make it work?
admins = {
["conman0552"] = true;
}
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
if admins[player.Name] then
print(player.Name.." is an admin of this game")
char:MoveTo(Vector3.new(91.51, 119.988, -8.701))
player.TeamColor = BrickColor.new("Lapis") -- Look at the example of this below the script.
end
end)
end)
Yes I have tried Color3 and I have used the number 307 in this. On another script this same team changing formate works just fine.

1 comment
It's basically as short as you can make it while keeping it neat and clean