caleb244
|
  |
| Joined: 02 Aug 2009 |
| Total Posts: 12389 |
|
|
| 19 Mar 2012 09:39 PM |
| Like a group spawn, for a base. But a raiders spawn, any help on Lua code here? I have no skill in lua. |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
| |
|
caleb244
|
  |
| Joined: 02 Aug 2009 |
| Total Posts: 12389 |
|
|
| 19 Mar 2012 09:43 PM |
| it's not a request. "scripting helpers" |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 19 Mar 2012 09:45 PM |
| Ok, so what do you mean by a raider only spawn? Like if a player enters and he's not in a group or something, he automatically goes to the raider team? |
|
|
| Report Abuse |
|
|
caleb244
|
  |
| Joined: 02 Aug 2009 |
| Total Posts: 12389 |
|
| |
|
caleb244
|
  |
| Joined: 02 Aug 2009 |
| Total Posts: 12389 |
|
|
| 19 Mar 2012 09:48 PM |
| Wait no- i can easily do that. Just with enemy groups, raiders |
|
|
| Report Abuse |
|
|
caleb244
|
  |
| Joined: 02 Aug 2009 |
| Total Posts: 12389 |
|
|
| 19 Mar 2012 09:49 PM |
| Actually never mind, I figured out how to do it. |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 19 Mar 2012 09:52 PM |
qq
groupid = 1337
game:GetService("Players").PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(human) player = game:GetService("Players"):GetPlayerFromCharacter(plr.Parent) if player and human then if player:IsInGroup(groupid) then print("Player is a member on group") else wait(1) human.Position = game.Workspace:findFirstCild("SPAWNNAMEHERE") + Vector3.new(0,2,0,) end end end) end) |
|
|
| Report Abuse |
|
|
THEFLOD
|
  |
| Joined: 04 Jan 2010 |
| Total Posts: 14 |
|
|
| 19 Mar 2012 09:59 PM |
| Thanks this really helps :D |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 19 Mar 2012 10:00 PM |
Oh, I forgot something.
qq
groupid = 1337
game:GetService("Players").PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(human) player = game:GetService("Players"):GetPlayerFromCharacter(plr.Parent) if player and human then if player:IsInGroup(groupid) then print("Player is a member on group") else wait(1) human.Position = game.Workspace:findFirstCild("SPAWNNAMEHERE").Position + Vector3.new(0,2,0,) end end end) end) |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 19 Mar 2012 10:00 PM |
Another mistake. D:
groupid = 1337
game:GetService("Players").PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(human) player = game:GetService("Players"):GetPlayerFromCharacter(plr.Parent) if player and human then if player:IsInGroup(groupid) then print("Player is a member on group") else wait(1) human.Position = game.Workspace:findFirstCild("SPAWNNAMEHERE").Position + Vector3.new(0,2,0) end end end) end) |
|
|
| Report Abuse |
|
|
spookyBen
|
  |
| Joined: 13 Dec 2009 |
| Total Posts: 6581 |
|
|
| 19 Mar 2012 10:28 PM |
| lemme guess, another mistake? :3 |
|
|
| Report Abuse |
|
|