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
|
  |
| 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 |
|
|
|
| 27 Dec 2011 08:54 PM |
Is the spawn's TeamColor NavyBlue?
~Trappee?Trapper~ |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 27 Dec 2011 09:00 PM |
OH! Sometimes this happens with me. Go try this in Regular play, not Test.
~Trappee?Trapper~ |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 23 Mar 2010 |
| Total Posts: 206 |
|
|
| 27 Dec 2011 09:01 PM |
| And yes. The team is under the service 'Teams' |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 23 Mar 2010 |
| Total Posts: 206 |
|
| |
|