Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

1 comment

0

I have three teams, would I do else twice or..?

This discussion is preserved as it was. New answers, comments, and votes are closed.