robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 09 Jul 2012 07:00 PM |
script.Parent.MouseButton1Down:connect(function() if game.Players.LocalPlayer.IsInGroup(208206) game.Players.LocalPlayer.TeamColor = BrickColor.new("Alder") end) -------------------------------------------------------------- if game.Player.LocalPlayer.IsInGroup(208206) == false then game.Players.LocalPlayer.PlayerGui.error2.Visible = true end) OUTPUT - 18:58:12 - Players.Player.PlayerGui.ScreenGui.Shadow Warriors.LocalScript:3: 'then' expected near 'game' -------------------------------------------------------------- I could use some help. -=Robo=-
|
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
| |
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 09 Jul 2012 07:30 PM |
I could really use some help, why is no one replying? -=Robo=- |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 09 Jul 2012 07:32 PM |
script.Parent.MouseButton1Down:connect(function() if game.Players.LocalPlayer:IsInGroup(208206) game.Players.LocalPlayer.TeamColor = BrickColor.new("Alder") else game.Players.LocalPlayer.PlayerGui.error2.Visible = true end end)
Also, I'm pretty sure Alder isn't a color. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 09 Jul 2012 07:33 PM |
| Nvm on the Alder color. Never heard of it before. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 09 Jul 2012 07:34 PM |
Sorry forgot the then
script.Parent.MouseButton1Down:connect(function() if game.Players.LocalPlayer:IsInGroup(208206) then game.Players.LocalPlayer.TeamColor = BrickColor.new("Alder") else game.Players.LocalPlayer.PlayerGui.error2.Visible = true end end) |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2012 07:34 PM |
| You guys are missing the most obvious thing. There is no 'then' for the 'if' statement that he created. |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2012 07:35 PM |
^ Late post above :P
(Stupid flood check) |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 09 Jul 2012 07:37 PM |
| Yea. I saw it at first but I forgot to include it in the first revision until I posted it and saw that the then was missing. |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2012 08:29 PM |
| Is LocalPlayer defined. I don't know if localscripts can be ran inside of a brick. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 10 Jul 2012 12:56 AM |
Thanks alot guys. Testing it now. -=Robo=- |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 10 Jul 2012 01:03 AM |
Still doesn't work. :o -=Robo=- |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
| |
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 10 Jul 2012 02:26 AM |
| y u no respond to meh ,biiiiiiiiiiiiiiiiiiootchfsdlkfl |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2012 03:51 AM |
| Put the script in a LocalScript |
|
|
| Report Abuse |
|
|