|
| 22 Sep 2017 04:50 PM |
gah i feel like a noob for asking this.
but i am confused why this simple function isnt working.
game.Players.PlayerAdded:connect(function(player) if(player:IsInGroup(1234)) then player.TeamColor = player.TeamColor.new ("Camo") end end)
and yes i changed the group number in this post on purpose. |
|
|
| Report Abuse |
|
|
Sublivion
|
  |
| Joined: 16 Jun 2013 |
| Total Posts: 2390 |
|
|
| 22 Sep 2017 05:13 PM |
"player.TeamColor = player.TeamColor.new ("Camo")"
if this isn't calling an error, then you need to add some prints and debug, but anyway, just do it like this pls there is no reason to do colours and *insert #'s*
player.Team = game:GetService('Teams').XXXX
-sub the scrub |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2017 05:13 PM |
did u ever set up the teams beforehand?
#code error("you're*") |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2017 07:31 PM |
lolol yeah i setup the teams... i asked this question early tho, forgot trying to set TeamColor = TeamColor.new("Camo"), was an invalid concept... needed to set it to BrickColor.new because thats how teams are organised...
so instead put TeamColor = BrickColor.new("Camo") |
|
|
| Report Abuse |
|
|
pidgey
|
  |
| Joined: 16 Jan 2008 |
| Total Posts: 2739 |
|
|
| 23 Sep 2017 07:39 PM |
why dont you just use Player.Team ? player.Team = game.Teams.team |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 23 Sep 2017 07:40 PM |
| new is not a valid member of TeamColor, and yeah uh just compare teams not the color |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2017 03:55 PM |
| ok thx for the advice, ill start using player.team from now on :) |
|
|
| Report Abuse |
|
|