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.
function onEntered(player)
wait(1)
if player:IsInGroup(1240748)then
player.TeamColor = BrickColor.new("Really Black")
end
end
game.Players.PlayerAdded:connect(onEntered)
The Team's Color is "Really Black".
Please help!

1 comment
It should be Really black (letter b in black lowercase). Lua is case-sensitive.