|
| 22 Jul 2013 12:38 PM |
function Enter(newPlayer) if newPlayer:IsInGroup(907858) then newPlayer.TeamColor=script.Parent.TeamColor end end
game.Players.ChildAdded:connect(Enter)
What Do I Need To Change To Make It A Group Only Spawn? I have the groups ID Vegius (907878) What do I need to change so only group members spawn on a certain spawn? Spawn Color: Navy Blue Team Color: Navy Blue |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jul 2013 12:43 PM |
| Well I'm not entirely sure if you can make group only spawn points... BUT, you can teleport the player to that spawn point when he enters the game. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jul 2013 12:47 PM |
| newPlayer.Character:MoveTo(game.Workspace.GroupSpawn.Position + Vector3.new(0, 2, 0)) |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Jul 2013 12:50 PM |
game.Players.PlayerAdded:connect(function(p) if p:Isingroup(s) then p:WaitForDataReady() p.Character.Torso.CFrame = CFrame.new(workspace.Spawn1.Position) end end) |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Jul 2013 12:52 PM |
Change my line 2 to if newPlayer:IsInGroup(907858) then
I was too lazy to do it properly, but I came over it |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2013 01:04 PM |
| newPlayer should be p actually |
|
|
| Report Abuse |
|
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 22 Jul 2013 01:08 PM |
| Yeah I just copied the original post because I wasn't going to memorise the group is. |
|
|
| Report Abuse |
|
|