|
| 26 Jan 2013 03:35 PM |
I'm having trouble on my map making rank specific teams. For one of these teams, I want Trainers (Certain Rank) to spawn on the trainers team. So far, I have the "SpawnLocation" which is set for team "Really Black." Inside that, I placed the following script: function Enter(newPlayer) if newPlayer:GetRankInGroup(679836) == 254 then newPlayer.TeamColor=script.Parent.Value.Value end end
game.Players.ChildAdded:connect(Enter)
When I spawn, I'm not in the trainers group. Any help would be appreciated. Thanks, guys. |
|
|
| Report Abuse |
|
|
Molete
|
  |
| Joined: 12 Jan 2013 |
| Total Posts: 39 |
|
|
| 26 Jan 2013 03:40 PM |
| i had trouble with that to. if you made ANOTHER script like that for another group and you are in it both, than yeah. |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 03:52 PM |
game.Players.PlayerAdded:connect(function(Player) If Player:GetRankInGroup(1337) == 1337 then Player.TeamColor = BrickColor.new("Really black") end end) |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 05:33 PM |
| Apologies, that didn't work. |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jan 2013 12:03 PM |
game.Players.PlayerAdded:connect(function(Player) if Player:GetRankInGroup(679836) == 254 then Player.TeamColor = BrickColor.new("Really black") end end)
My if statement was capitalised. |
|
|
| Report Abuse |
|
|
Molete
|
  |
| Joined: 12 Jan 2013 |
| Total Posts: 39 |
|
| |
|
|
| 27 Feb 2013 02:04 PM |
game.Players.PlayerAdded:connect(function(Player) Player.Neutral = false if Player:GetRankInGroup(679836) == 254 then Player.TeamColor = BrickColor.new("Really black") end end)
~~~~Need a scripter? PM me. https://twitter.com/triston220Roblo ~~~~ |
|
|
| Report Abuse |
|
|
gamert7
|
  |
| Joined: 18 Nov 2008 |
| Total Posts: 4986 |
|
|
| 27 Feb 2013 02:34 PM |
game.Players.PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(32423423) == 222 then Player.TeamColor = BrickColor.new('Really red')
elseif if Player:GetRankInGroup(32423423) == 21 then Player.TeamColor = BrickColor.new('Really blue')
end end end) |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2013 12:45 PM |
| Thanks, guys. I'll try this.. |
|
|
| Report Abuse |
|
|