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: Neutral Team

Previous Thread :: Next Thread 
iJake123 is not online. iJake123
Joined: 23 Mar 2010
Total Posts: 206
27 Dec 2011 08:51 PM
Okay, so I put a script in a spawnlocation that's supposed to make people from a certain group spawn there. Problem is, when I test it, I spawn on a team I didn't put in there, called "Neutral." I know it's a problem with the script, but if it's not I really need help here.


game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(379389) then
player.TeamColor = BrickColor.new("Navy Blue")
else
end
end)


Did I insert the script in the wrong spot?
Report Abuse
iJake123 is not online. iJake123
Joined: 23 Mar 2010
Total Posts: 206
27 Dec 2011 08:52 PM
The script is in workspace, tried putting it in spawn.
Report Abuse
Trapper4O77 is not online. Trapper4O77
Joined: 03 Aug 2011
Total Posts: 5648
27 Dec 2011 08:54 PM
Is the spawn's TeamColor NavyBlue?

~Trappee?Trapper~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
27 Dec 2011 08:55 PM
Are the spawn's team "Navy Blue"? And does Navy Blue exist as a "Team"?

~ [I don't script scripts; I script IMPORTED scripts.] [The inner machinations of my mind are an enigma.] ~
Report Abuse
iJake123 is not online. iJake123
Joined: 23 Mar 2010
Total Posts: 206
27 Dec 2011 08:57 PM
The spawn's TeamColor is navy blue, and the Team's name is Deadly Moral Legion
Report Abuse
Trapper4O77 is not online. Trapper4O77
Joined: 03 Aug 2011
Total Posts: 5648
27 Dec 2011 09:00 PM
OH! Sometimes this happens with me. Go try this in Regular play, not Test.

~Trappee?Trapper~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
27 Dec 2011 09:01 PM
No, I meant the object "Team", does it exist, and is it a child of the service "Teams"?

~ [I don't script scripts; I script IMPORTED scripts.] [The inner machinations of my mind are an enigma.] ~
Report Abuse
iJake123 is not online. iJake123
Joined: 23 Mar 2010
Total Posts: 206
27 Dec 2011 09:01 PM
I've tried that, still not working. Even tried with other members of the group i'm in.
Report Abuse
iJake123 is not online. iJake123
Joined: 23 Mar 2010
Total Posts: 206
27 Dec 2011 09:01 PM
And yes. The team is under the service 'Teams'
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
27 Dec 2011 09:03 PM
And it is the color "Navy Blue", correct?

~ [I don't script scripts; I script IMPORTED scripts.] [The inner machinations of my mind are an enigma.] ~
Report Abuse
iJake123 is not online. iJake123
Joined: 23 Mar 2010
Total Posts: 206
27 Dec 2011 09:08 PM
Fixed it, I named the team "Navy Blue" It's "Navy blue"
Stupidest mistake I've EVER made.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
27 Dec 2011 09:09 PM
Doh, I should have spotted it. :S

~ [I don't script scripts; I script IMPORTED scripts.] [The inner machinations of my mind are an enigma.] ~
Report Abuse
iJake123 is not online. iJake123
Joined: 23 Mar 2010
Total Posts: 206
27 Dec 2011 09:26 PM
Don't worry, it's because of you that I double checked it and spotted it :P
Report Abuse
TameDrone is not online. TameDrone
Joined: 09 Dec 2010
Total Posts: 1006
27 Dec 2011 09:32 PM
I'm not the best scripter in fact I'm kind of new.

Isntead of the script trying to make you join a certain team by puting you with the team color, it puts you with the team name?
Report Abuse
iJake123 is not online. iJake123
Joined: 23 Mar 2010
Total Posts: 206
15 Jan 2012 07:17 PM
It's fixed now.
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