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: Allies spawning script

Previous Thread :: Next Thread 
IntelPhilosophy is not online. IntelPhilosophy
Joined: 05 Jun 2012
Total Posts: 285
11 Jul 2012 03:59 PM
Could you possibly help me with this?? I made this group spawn script, but its for one group only, so I am trying to make an ally spawn, but with multiple allies, I am having trouble. There is two scripts, one with one group ID aloud (Top), and then a second one where I tried to make it so multiple group ID's could be put in (BOttom). Would the second one work?

function Enter(newPlayer)
if newPlayer:IsInGroup() then
newPlayer.TeamColor=script.Parent.TeamColor
end
end


game.Players.ChildAdded:connect(Enter)

----------------------------------------------------------------------
function Enter(newPlayer)
if newPlayer:IsInGroup("", "", "") then
newPlayer.TeamColor=script.Parent.TeamColor
end
end


game.Players.ChildAdded:connect(Enter)
------------------------------------------

The second script has the parenthisis. Would this work for an allies spawn?


Report Abuse
HatModder is not online. HatModder
Joined: 05 Jun 2012
Total Posts: 12891
11 Jul 2012 04:02 PM
No, it doesn't load a group id to teleport the players in your group to the specific spawn point.
Report Abuse
IntelPhilosophy is not online. IntelPhilosophy
Joined: 05 Jun 2012
Total Posts: 285
11 Jul 2012 04:04 PM
Wait what? I'm confused now. For that I was just going to make a seperate script that would kill a player on joining into the game. Besides that, I was not asking if it would teleport the player or not. I'm just trying to add in all the allie group id's into one script.
Report Abuse
IntelPhilosophy is not online. IntelPhilosophy
Joined: 05 Jun 2012
Total Posts: 285
11 Jul 2012 04:08 PM
... Bump
Report Abuse
HatModder is not online. HatModder
Joined: 05 Jun 2012
Total Posts: 12891
11 Jul 2012 04:10 PM
Any output?
Report Abuse
IntelPhilosophy is not online. IntelPhilosophy
Joined: 05 Jun 2012
Total Posts: 285
11 Jul 2012 04:14 PM
No.
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