Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a whitelist script that changes the targeted peoples team?

Asked by 4 years ago
Edited 4 years ago

So I have a couple of teams, Developers, Fans & Contributors

I have a list of people who I want to put on a whitelist for certain teams. Like "Player1" on the Developers team and everybody who is not on a whitelist, gets put on Fans; technically fans is auto-assignable so do I keep it auto-assignable or not?

1 answer

Log in to vote
0
Answered by 4 years ago

game.Players.PlayerAdded:Connect(function() for _,player in pairs(game.Players:GetChildren()) do if player.Name = "PutTheSpecalPlayersNameHere" or "AnotherOne" or "AnotherOne" then player.TeamColor = BrickColor.new("Cyan") --instead of cyan put the color of the developers team it's one of it's properties else player.TeamColor = BrickColor.new("Cyan") --instead of cyan put the color of fans --Put this in a server script by the way
0
I have three teams, would I do else twice or..? EH2019SIT 78 — 4y
Ad

Answer this question