Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
|
| 19 Nov 2011 10:56 AM |
--Id's HR = 0 MA = 0 Raiders = 0
--Color's HRColor = "Really black" MAColor = "Camo" RaiderColor = "Bright red" VistorColor = "Bright yellow"
game.Players.PlayerAdded:connect(function (newPlayer) wait(15) if P:IsInGroup(HR) then P.TeamColor = BrickColor.new(HRColor) return end
else if P:IsInGroup(MA) then P.TeamColor = BrickColor.new(MAColor) return end
else if P:IsInGroup(Raiders) then P.TeamColor = BrickColor.new(RaiderColor) return end
else P.TeamColor = BrickColor.new(MAColor) end --Created By Rames7
|
|
|
| Report Abuse |
|
|
|
| 19 Nov 2011 10:58 AM |
Mabe because you didn't define P.
HR = 0 MA = 0 Raiders = 0 --Color's HRColor = "Really black" MAColor = "Camo" RaiderColor = "Bright red" VistorColor = "Bright yellow" game.Players.PlayerAdded:connect(function(P) wait(15) if P:IsInGroup(HR) then P.TeamColor = BrickColor.new(HRColor) return end else if P:IsInGroup(MA) then P.TeamColor = BrickColor.new(MAColor) return end else if P:IsInGroup(Raiders) then P.TeamColor = BrickColor.new(RaiderColor) return end else P.TeamColor = BrickColor.new(MAColor) end |
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
| |
|
|
| 19 Nov 2011 11:01 AM |
HR = 0 MA = 0 Raiders = 0 --Color's HRColor = "Really black" MAColor = "Camo" RaiderColor = "Bright red" VistorColor = "Bright yellow" game.Players.PlayerAdded:connect(function(P) wait(15) if P:IsInGroup(HR) then P.TeamColor = BrickColor.new(HRColor) return end elseif P:IsInGroup(MA) then P.TeamColor = BrickColor.new(MAColor) return end elseif P:IsInGroup(Raiders) then P.TeamColor = BrickColor.new(RaiderColor) return end else P.TeamColor = BrickColor.new(MAColor) end |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2011 11:02 AM |
HR = 0 MA = 0 Raiders = 0 --Color's HRColor = "Really black" MAColor = "Camo" RaiderColor = "Bright red" VistorColor = "Bright yellow" game.Players.PlayerAdded:connect(function(P) wait(15) if P:IsInGroup(HR) then P.TeamColor = BrickColor.new(HRColor) elseif P:IsInGroup(MA) then P.TeamColor = BrickColor.new(MAColor) elseif P:IsInGroup(Raiders) then P.TeamColor = BrickColor.new(RaiderColor) else P.TeamColor = BrickColor.new(MAColor) end end) |
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
|
| 19 Nov 2011 11:03 AM |
| I still don't get it, doesn't work. |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2011 11:06 AM |
HR = 0 MA = 0 Raiders = 0 --Color's HRColor = "Really black" MAColor = "Camo" RaiderColor = "Bright red" VistorColor = "Bright yellow" game.Players.PlayerAdded:connect(function(P) wait(15) if P:IsInGroup(HR) then P.TeamColor = BrickColor.new(HRColor) return end elseif P:IsInGroup(MA) then P.TeamColor = BrickColor.new(MAColor) return end elseif P:IsInGroup(Raiders) then P.TeamColor = BrickColor.new(RaiderColor) return end else P.TeamColor = BrickColor.new(MAColor) end)
> > > > > > > > > > > > > > > > > > > > > > > :P |
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
|
| 19 Nov 2011 11:08 AM |
| Do you understand it, it doesn't work D: |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Nov 2011 11:12 AM |
| Why are you using end after return under elseif statement?, ARE YOU INSANE? |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2011 11:12 AM |
| Do you understand that you need to tell me the Output? |
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
| |
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
|
| 19 Nov 2011 11:14 AM |
Da Output
Workspace.Script:14: 'end' expected (to close 'function' at line 9) near 'elseif' |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Nov 2011 11:14 AM |
| It is because you'r using end after return under elseif.... >.< |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2011 11:15 AM |
HR = 0 MA = 0 Raiders = 0 --Color's HRColor = "Really black" MAColor = "Camo" RaiderColor = "Bright red" VistorColor = "Bright yellow" game.Players.PlayerAdded:connect(function(P) wait(15) if P:IsInGroup(HR) then P.TeamColor = BrickColor.new(HRColor) elseif P:IsInGroup(MA) then P.TeamColor = BrickColor.new(MAColor) elseif P:IsInGroup(Raiders) then P.TeamColor = BrickColor.new(RaiderColor) else P.TeamColor = BrickColor.new(MAColor) end end) |
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
|
| 19 Nov 2011 11:18 AM |
Current
HR = 0 MA = 0 Raiders = 0 --Color's HRColor = "Really black" MAColor = "Camo" RaiderColor = "Bright red" VistorColor = "Bright yellow" game.Players.PlayerAdded:connect(function(P) wait(15) if P:IsInGroup(HR) then P.TeamColor = BrickColor.new(HRColor) return P elseif P:IsInGroup(MA) then P.TeamColor = BrickColor.new(MAColor) return P elseif P:IsInGroup(Raiders) then P.TeamColor = BrickColor.new(RaiderColor) return P else P.TeamColor = BrickColor.new(MAColor) end end
|
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
|
| 19 Nov 2011 11:20 AM |
| Ignore that last one I posted, with the new one(two above), the output is nothing |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 19 Nov 2011 11:21 AM |
| I bet you dont know what return even does >.^ <-- disappointed face mixed with happy one :P |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 19 Nov 2011 11:55 AM |
| If you are trying to run it, try to put in the ID of the group |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 19 Nov 2011 11:56 AM |
isnt it just 0? You need to change that to run it |
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
| |
|
|
| 19 Nov 2011 04:55 PM |
Are you trying to play it in solo?
The IsInGroup call now only works in online mode due to a Roblox update |
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
|
| 19 Nov 2011 04:56 PM |
| I'm not worried about the ID ifs, The last else doesn't work D: |
|
|
| Report Abuse |
|
|
|
| 19 Nov 2011 04:56 PM |
| That last else needs to be elseif as well |
|
|
| Report Abuse |
|
|
Rames7
|
  |
| Joined: 19 Nov 2009 |
| Total Posts: 547 |
|
| |
|
|
| 19 Nov 2011 04:59 PM |
because it is a conditional statement
"else" can't go with a condition "if" starts the function "elseif" is for everything else
"'else' ... code" won't work. |
|
|
| Report Abuse |
|
|