Cyls
|
  |
| Joined: 31 Aug 2008 |
| Total Posts: 166 |
|
|
| 24 Nov 2015 09:13 PM |
| Basically trying to make it so the team color of the player affects the tools handle. |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 24 Nov 2015 09:14 PM |
| game.Players.LocalPlayer.TeamColor |
|
|
| Report Abuse |
|
|
Cyls
|
  |
| Joined: 31 Aug 2008 |
| Total Posts: 166 |
|
|
| 24 Nov 2015 09:21 PM |
| Is that the name or the actual color of it? |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 24 Nov 2015 09:24 PM |
| There's a property in the player called 'TeamColor', and it's a BrickColor value. |
|
|
| Report Abuse |
|
|
Cyls
|
  |
| Joined: 31 Aug 2008 |
| Total Posts: 166 |
|
|
| 24 Nov 2015 09:32 PM |
Would this be right?
script.Parent.BrickColor = BrickColor.new(game.Players.LocalPlayer.TeamColor) |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 24 Nov 2015 09:35 PM |
| Yes, but the property 'TeamColor' is already a BrickColor so that would cause an error. |
|
|
| Report Abuse |
|
|
Cyls
|
  |
| Joined: 31 Aug 2008 |
| Total Posts: 166 |
|
|
| 24 Nov 2015 09:39 PM |
What?
So how would I make it change the part? |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2015 09:41 PM |
script.Parent.BrickColor = game.Players.LocalPlayer.TeamColor
Although it's assuming this is in a LocalScript. |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 24 Nov 2015 09:41 PM |
It's already a brickcolor. You're doing:
script.Parent.BrickColor = BrickColor.new(TeamColor) --its already a brickcolor
so you should be doing:
script.Parent.BrickColor = TeamColor |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2015 09:48 PM |
| TeamColor gets the brick color and team color so basically all you need to do is team color, not brick color, am i right? lol |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2015 09:53 PM |
No. TeamColor gets TeamColor. TeamColor is just to be a BrickColor value, like how Name is a String value, so you can set the Part's BrickColor to the Player's TeamColor, because it's the same Value type, like how you can set Text to someone's Name, same Value type.
I guess they kind of are the same then..... |
|
|
| Report Abuse |
|
|