generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Creating a raiders only spawn

Previous Thread :: Next Thread 
caleb244 is not online. 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 is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
19 Mar 2012 09:40 PM
Noob. No requests.
Report Abuse
caleb244 is not online. caleb244
Joined: 02 Aug 2009
Total Posts: 12389
19 Mar 2012 09:43 PM
it's not a request. "scripting helpers"
Report Abuse
TwoBoo is not online. 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 is not online. caleb244
Joined: 02 Aug 2009
Total Posts: 12389
19 Mar 2012 09:47 PM
Yes, or a neutral spawn.
Report Abuse
caleb244 is not online. 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 is not online. 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 is not online. 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 is not online. THEFLOD
Joined: 04 Jan 2010
Total Posts: 14
19 Mar 2012 09:59 PM
Thanks this really helps :D
Report Abuse
TwoBoo is not online. 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 is not online. 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 is not online. spookyBen
Joined: 13 Dec 2009
Total Posts: 6581
19 Mar 2012 10:28 PM
lemme guess, another mistake? :3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image