|
| 28 Jul 2015 06:46 PM |
Hey guys, Can anyone give me a script that whenever a group member enters a game and spawns on raider they will die and join the group team? Thanks! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 29 Jul 2015 08:44 AM |
GroupID = 1337 -- Group ID GroupTeamColor = BrickColor.new("Bright green") -- The team color of the group team
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) if p:IsInGroup(GroupID) then p.TeamColor = GroupTeamColor p:LoadCharacter() end end) end) |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2015 05:09 PM |
All that did is that when the script is activated, it made a Player spawn into the game.. Bump |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2015 09:11 PM |
| I have a video of this on my Youtube, well 3 different versions... go to my profile and look |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2015 09:55 PM |
that's because you didn't edit the script to work with your game dude.
✗ ʙᴀᴢɪɴɢᴀ |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2015 09:59 PM |
| Yes I did. I am not that stupid. I replaced the group ID and I made the team color Toothpaste. |
|
|
| Report Abuse |
|
|
| |
|
Mitko0o1
|
  |
| Joined: 30 Nov 2010 |
| Total Posts: 5725 |
|
|
| 30 Jul 2015 08:36 AM |
I tested it on my place and it works, you have to kill the player first though
GroupID = 1337 -- Group ID GroupTeamColor = BrickColor.new("Bright green") -- The team color of the group team
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) if p:IsInGroup(GroupID) then p.TeamColor = GroupTeamColor c:WaitForChild("Humanoid").Health = 0 p:LoadCharacter() end end) end) |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 08:29 AM |
| It doesn't work for multiple people, but I think it is a ROBLOX problem. Thanks for the help anyways! |
|
|
| Report Abuse |
|
|