|
| 11 Jul 2012 03:59 PM |
Could you possibly help me with this?? I made this group spawn script, but its for one group only, so I am trying to make an ally spawn, but with multiple allies, I am having trouble. There is two scripts, one with one group ID aloud (Top), and then a second one where I tried to make it so multiple group ID's could be put in (BOttom). Would the second one work?
function Enter(newPlayer) if newPlayer:IsInGroup() then newPlayer.TeamColor=script.Parent.TeamColor end end
game.Players.ChildAdded:connect(Enter)
---------------------------------------------------------------------- function Enter(newPlayer) if newPlayer:IsInGroup("", "", "") then newPlayer.TeamColor=script.Parent.TeamColor end end
game.Players.ChildAdded:connect(Enter) ------------------------------------------
The second script has the parenthisis. Would this work for an allies spawn?
|
|
|
| Report Abuse |
|
|
HatModder
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 12891 |
|
|
| 11 Jul 2012 04:02 PM |
| No, it doesn't load a group id to teleport the players in your group to the specific spawn point. |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2012 04:04 PM |
| Wait what? I'm confused now. For that I was just going to make a seperate script that would kill a player on joining into the game. Besides that, I was not asking if it would teleport the player or not. I'm just trying to add in all the allie group id's into one script. |
|
|
| Report Abuse |
|
|
| |
|
HatModder
|
  |
| Joined: 05 Jun 2012 |
| Total Posts: 12891 |
|
| |
|
| |
|