knopie
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 12 |
|
|
| 20 Jun 2015 07:20 AM |
When a player on lets say team blue presses the brick it should change to that teams color, The only help I found was some old 2010 and 2009 code which does not work anymore.It should be easy enough but I cant get my head arround it.
Any ideas?
function onClicked(user) script.Parent.BrickColor = -- Here should be the team color end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2015 07:24 AM |
function onClicked(user) script.Parent.BrickColor = BrickColor.new("Really ass") end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
knopie
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 12 |
|
|
| 20 Jun 2015 07:29 AM |
| And what is that seppose to do... |
|
|
| Report Abuse |
|
|
| |
|
knopie
|
  |
| Joined: 06 Feb 2008 |
| Total Posts: 12 |
|
|
| 20 Jun 2015 07:40 AM |
Thanks I figured it out, Was really simple I over thought it.
For anyone wondering just had to do user.TeamColor |
|
|
| Report Abuse |
|
|
Gogeta
|
  |
| Joined: 25 Nov 2006 |
| Total Posts: 583 |
|
|
| 20 Jun 2015 07:56 AM |
game.LocalPlayer = Player
function onClicked(user) script.Parent.BrickColor = Player.TeamColor end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|