of     1   

Hazor
#41148356Tuesday, January 18, 2011 1:25 PM GMT

I need a script that puts Rat Members on the "Rat Member" Team at my fort, and none of the scripts I have tried work... Any suggestions?
HPtopia
#41148485Tuesday, January 18, 2011 1:30 PM GMT

Use the IsInGroup function.
Hazor
#41149119Tuesday, January 18, 2011 1:59 PM GMT

Here is one of the scripts I tried. game.Players.PlayerAdded:connect(function(Plyr) if Plyr:IsInGroup(7013) then Plyr.Team = "Rat Members" end end It didn't work.
darkboeda
#41149267Tuesday, January 18, 2011 2:04 PM GMT

Rat Members has a space, To make it work make it ["Rat Members"] Im not that good but i think i got this right :D
Brandonhare
#41149458Tuesday, January 18, 2011 2:11 PM GMT

player.Team is a BrickColor value, and the name comes from the "Team" object that has the same colour.
Hazor
#41149476Tuesday, January 18, 2011 2:12 PM GMT

Grr. It's still not working... Does the Auto Assign property on the teams matter? I have it turned off for Rat Members...
Hazor
#41149624Tuesday, January 18, 2011 2:18 PM GMT

BrandonHare, so your suggesting I Change it from Plyr.Team = "Rat Members" to Plyr.TeamColor = "Black"?
dudepop34
#41149792Tuesday, January 18, 2011 2:25 PM GMT

Yes, that is what he is saying...
Brandonhare
#41149919Tuesday, January 18, 2011 2:30 PM GMT

Not "black", brickColor.new("Black")
Hazor
#41150313Tuesday, January 18, 2011 2:47 PM GMT

game.Players.PlayerAdded:connect(function(Plyr) if Plyr:IsInGroup(7013) then Plyr.TeamColor = brickColor.new("Black") End Still not working.....
Brandonhare
#41150433Tuesday, January 18, 2011 2:52 PM GMT

game.Players.PlayerAdded:connect(function(Plyr) if Plyr:IsInGroup(7013) then Plyr.TeamColor = BrickColor.new("Black") end end)
Overscores
#41150447Tuesday, January 18, 2011 2:52 PM GMT

end not End
HPtopia
#41150465Tuesday, January 18, 2011 2:52 PM GMT

You have to have the TeamColor, Black. If you don't than use the Instance.new event or insert one to create it.
Overscores
#41150466Tuesday, January 18, 2011 2:53 PM GMT

lol furgot the if.
Hazor
#41150626Tuesday, January 18, 2011 2:58 PM GMT

game.Players.PlayerAdded:connect(function(Plyr) if Plyr:IsInGroup(7013) then Plyr.TeamColor = BrickColor.new("Black") else Plyr.TeamColor = BrickColor.new("Medium Stone Grey") end I added another team, and I'm pretty close to giving up on this script....
Overscores
#41158095Tuesday, January 18, 2011 7:01 PM GMT

For every one of these ------------------------------- if function do ------------------------------- You will need a end.
Hazor
#41159809Tuesday, January 18, 2011 7:46 PM GMT

Ah, ok. Cool, thanks for telling me.
Hazor
#41567346Wednesday, January 26, 2011 12:16 PM GMT

Grr. Still not working... Are you sure this will work?
bunnybunn264
#41567564Wednesday, January 26, 2011 12:37 PM GMT

game.Players.PlayerAdded:connect(function(player) if player:IsInGroup(Put RAT's ID number here) then player.Team = game.Teams.RatTeam? end end) Now, I'll have you know I don't do much with teams, so I can't really help you much. But I have most of it there for you, just the team part is probably wrong. And put RAT's group ID where I told you. Then just make them whatever team, however you do that.
Hazor
#41575593Wednesday, January 26, 2011 7:20 PM GMT

Still not working....
Overscores
#41628260Thursday, January 27, 2011 10:15 PM GMT

game.Players.PlayerAdded:connect(function(Plyr) if Plyr:IsInGroup(7013) then Plyr.TeamColor = BrickColor.new("Black") else Plyr.TeamColor = BrickColor.new("Medium Stone Grey") end end

    of     1