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!
function onEntered(player) wait(1) if player:IsInGroup(1240748)then player.TeamColor = BrickColor.new("Really black") --Lua is case sensitive like how MastaJames said. Spell the BrickColor right. end end game.Players.PlayerAdded:connect(onEntered)
BrickColor Codes and spellings.