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: Group Spawn isn't working.

Previous Thread :: Next Thread 
DarkArcane is not online. DarkArcane
Joined: 12 Jan 2011
Total Posts: 14561
10 Aug 2012 02:07 PM
Okay, I have a script for my group, here it is.

game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(618585) then ------ put your group ID in the "()"
player.TeamColor = BrickColor.new("Really blue")
else --<<
end
end)



Now, everytime I spawn, I spawn on the right team, but not at the right spawn.

The team setting is "Really blue"

The Spawn that I SHOULD spawn at team setting is "Really blue"

I've even put the script in the spawns, and it still doesn't work.

What do I do?

Add 1769 to my post count ~DA
Report Abuse
DarkArcane is not online. DarkArcane
Joined: 12 Jan 2011
Total Posts: 14561
10 Aug 2012 02:12 PM
Bump.

Add 1769 to my post count ~DA
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
10 Aug 2012 02:13 PM
game.Players.PlayerAdded:connect(function(plr)
if plr:IsInGroup(YourId) then plr.TeamColor = BrickColor.new("Your Color Here") end
end)

-- As of 8/10/12 I have 16,439R$ worth of hats/gear/and packages.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
10 Aug 2012 02:14 PM
game.Players.PlayerAdded:connect(function(plr)
if plr:IsInGroup(YourId) then plr.TeamColor = BrickColor.new("Your Color Here")
plr.Character:BreakJoints()
end end)

-- As of 8/10/12 I have 16,439R$ worth of hats/gear/and packages.
Report Abuse
DarkArcane is not online. DarkArcane
Joined: 12 Jan 2011
Total Posts: 14561
10 Aug 2012 02:16 PM
@Cease

Do I just put that in my spawns?

Add 1769 to my post count ~DA
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
10 Aug 2012 02:18 PM
Dark, in Workspace.

-- As of 8/10/12 I have 16,439R$ worth of hats/gear/and packages.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
10 Aug 2012 02:20 PM
Dark, there's no such thing as Really blue, it's Bright blue. -_-.... http://wiki.roblox.com/index.php/BrickColor_Codes

-- As of 8/10/12 I have 16,439R$ worth of hats/gear/and packages.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
10 Aug 2012 02:23 PM
@Cease: ... learn to use ctrl+f. It's code number 1010.
Report Abuse
DarkArcane is not online. DarkArcane
Joined: 12 Jan 2011
Total Posts: 14561
10 Aug 2012 02:24 PM
@cease

Actually it works.

I found out it was just the initial spawning.

And yes there is a Really blue.

Add 1769 to my post count ~DA
Report Abuse
Shobobo99 is not online. Shobobo99
Joined: 30 Dec 2008
Total Posts: 5754
10 Aug 2012 02:27 PM
This is because you are spawning before the team change is noticed by whatever script deals with spawns. Depending on your spawn names you could do something simple like this:

game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(618585) then ------ put your group ID in the "()"
player.TeamColor = BrickColor.new("Really blue")

else --<<
end

player.CharacterAdded:connect(function (char)
char:MoveTo(workspace.ClanSpawn.Position)
end)
end)

In this way, you would name all your clan spawns ClanSpawn.
Report Abuse
DarkArcane is not online. DarkArcane
Joined: 12 Jan 2011
Total Posts: 14561
10 Aug 2012 02:31 PM
@Sho

Would that fix the initial spawn problem?

When you first load up the game, it spawns me in the other teams spawn.


I reset, and I spawn in the correct spawn every time.

Add 1769 to my post count ~DA
Report Abuse
Shobobo99 is not online. Shobobo99
Joined: 30 Dec 2008
Total Posts: 5754
10 Aug 2012 02:49 PM
Yes, just name all your clan spawns: ClanSpawn, and it should work for the initial spawn as well.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
10 Aug 2012 03:06 PM
@Dr0: ... Learn to script.
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
10 Aug 2012 03:07 PM
What...?
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
10 Aug 2012 03:29 PM
Nice free model.

~repeat wait() until script.Parent:HasALife()
Report Abuse
nickbricknick464 is not online. nickbricknick464
Joined: 22 Aug 2008
Total Posts: 8302
10 Aug 2012 03:34 PM
@CeaselessSoul

I don't think you are in any position to tell Dr0 to learn how to script...
Report Abuse
zackeryjerrypowers is not online. zackeryjerrypowers
Joined: 01 Aug 2008
Total Posts: 1515
10 Aug 2012 03:42 PM
OMG HAS ANYONE THOUGHT OF THIS? :D
Maybe you have a neutral spawn. -.-'
Report Abuse
zackeryjerrypowers is not online. zackeryjerrypowers
Joined: 01 Aug 2008
Total Posts: 1515
10 Aug 2012 03:54 PM
Go to all the spawns and uncheck the "Neutral" box. :P
Report Abuse
NeeRuimte is not online. NeeRuimte
Joined: 01 Jul 2012
Total Posts: 126
10 Aug 2012 04:14 PM
@Cease, don't talk, I bet Dr0 can do 100xs better than you, Dr0 is a pro.
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