zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 19 Mar 2013 06:53 PM |
I know the Hierarchy is right with plr, it's in a very in-depth Gui, but for some reason Output says nothing but when I click it doesn't switch the teams.
plr = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent team = game.Teams:findFirstChild("Allies") function onButtonClicked() plr.TeamColor = team.TeamColor end script.Parent.MouseButton1Down:connect(onButtonClicked) |
|
|
| Report Abuse |
|
|
dekkonot
|
  |
| Joined: 22 Dec 2010 |
| Total Posts: 6685 |
|
|
| 19 Mar 2013 06:57 PM |
Quick question. Why didn't you use a local script?
Oh, and, reported for spam. |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 19 Mar 2013 06:59 PM |
| "reported for spam" how is this counted as "spam"? |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2013 07:01 PM |
| That would be his signature. |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 19 Mar 2013 07:02 PM |
| So any ideas of how to fix this? |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
| |
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
| |
|
|
| 19 Mar 2013 07:13 PM |
| This should be in a local script, how would we know what player it's set to? |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 19 Mar 2013 07:15 PM |
| Wait so I don't change the text but paste it into a local script? |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
|
| 19 Mar 2013 07:29 PM |
| Why does no one ever reply to these? |
|
|
| Report Abuse |
|
|
|
| 19 Mar 2013 07:45 PM |
local Player = Game.Players.LocalPlayer local Team = Game.Teams["Allies"]
script.Parent.MouseButton1Down:connect(function() Player.TeamColor = Team.TeamColor end)
Put this in a LocalScript. |
|
|
| Report Abuse |
|
|
zack785
|
  |
| Joined: 06 Feb 2009 |
| Total Posts: 419 |
|
| |
|