So I'm trying to make a script that will team a player if he is in my group.
Here's what I'm trying.
1 | function onEntered(player) |
2 | wait( 1 ) |
3 | if player:IsInGroup( 1240748 ) then |
4 | player.TeamColor = BrickColor.new( "Really Black" ) |
5 | end |
6 | end |
7 | game.Players.PlayerAdded:connect(onEntered) |
The Team's Color is "Really Black".
Please help!
1 | function onEntered(player) |
2 | wait( 1 ) |
3 | if player:IsInGroup( 1240748 ) then |
4 | player.TeamColor = BrickColor.new( "Really black" ) --Lua is case sensitive like how MastaJames said. Spell the BrickColor right. |
5 | end |
6 | end |
7 | game.Players.PlayerAdded:connect(onEntered) |
BrickColor Codes and spellings.