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: I Need A Quick Answer

Previous Thread :: Next Thread 
TheBetaGames is not online. TheBetaGames
Joined: 28 Jun 2013
Total Posts: 994
22 Jul 2013 12:38 PM
function Enter(newPlayer)
if newPlayer:IsInGroup(907858) then
newPlayer.TeamColor=script.Parent.TeamColor
end
end


game.Players.ChildAdded:connect(Enter)

What Do I Need To Change To Make It A Group Only Spawn?
I have the groups ID Vegius (907878)
What do I need to change so only group members spawn on a certain spawn?
Spawn Color: Navy Blue
Team Color: Navy Blue
Report Abuse
TheBetaGames is not online. TheBetaGames
Joined: 28 Jun 2013
Total Posts: 994
22 Jul 2013 12:39 PM
Bump
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
22 Jul 2013 12:43 PM
Well I'm not entirely sure if you can make group only spawn points... BUT, you can teleport the player to that spawn point when he enters the game.
Report Abuse
TheBetaGames is not online. TheBetaGames
Joined: 28 Jun 2013
Total Posts: 994
22 Jul 2013 12:46 PM
How?
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
22 Jul 2013 12:47 PM
newPlayer.Character:MoveTo(game.Workspace.GroupSpawn.Position + Vector3.new(0, 2, 0))
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
22 Jul 2013 12:50 PM
game.Players.PlayerAdded:connect(function(p)
if p:Isingroup(s) then
p:WaitForDataReady()
p.Character.Torso.CFrame = CFrame.new(workspace.Spawn1.Position) end end)
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
22 Jul 2013 12:52 PM
Change my line 2 to
if newPlayer:IsInGroup(907858) then

I was too lazy to do it properly, but I came over it
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
22 Jul 2013 01:04 PM
newPlayer should be p actually
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
22 Jul 2013 01:08 PM
Yeah I just copied the original post because I wasn't going to memorise the group is.
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