Dennoid
|
  |
| Joined: 21 Jun 2011 |
| Total Posts: 167 |
|
|
| 14 Jan 2014 07:47 PM |
Some reason my group script is not working, when a member of the group joins the game they should be automatically assigned to the group team, and if they are not part of the group, they should be on the raiders team. Here is the script in the group spawn down below:
local groupid = 1021768
function onPlayerEntered(player) if player:IsInGroup(groupid) then player.CharacterAdded:connect(onCharacterAdded) end end
function onCharacterAdded(character) character:MoveTo(script.Parent.Position + Vector3.new(0,5,0)) end
game.Players.PlayerAdded:connect(onPlayerEntered)
|
|
|
| Report Abuse |
|
|
shawnyg
|
  |
| Joined: 21 Apr 2011 |
| Total Posts: 1428 |
|
|
| 14 Jan 2014 08:00 PM |
local groupid = 1021768
game.Players.PlayerAdded:connect(function(player) if player:IsInGroup(groupid) then player.TeamColor = BrickColor.new("") --Brick color of team here. Case sensative. player:LoadCharacter() else player.TeamColor = BrickColor.new("") --raider team color hear. player:LoadCharacter() end end)
~Hope I helped, if you need a script, PM me first then buy this when I tell you to: http://www.roblox.com/My-Script-Shirt-item?id=118961994~ ~Glory to CAT!~ ~CAT General Shawnyg~ |
|
|
| Report Abuse |
|
|
Dennoid
|
  |
| Joined: 21 Jun 2011 |
| Total Posts: 167 |
|
| |
|
shawnyg
|
  |
| Joined: 21 Apr 2011 |
| Total Posts: 1428 |
|
|
| 14 Jan 2014 08:15 PM |
No problem.
~Hope I helped, if you need a script, PM me first then buy this when I tell you to: http://www.roblox.com/My-Script-Shirt-item?id=118961994~ ~Glory to CAT!~ ~CAT General Shawnyg~ |
|
|
| Report Abuse |
|
|