|
| 25 Jun 2013 04:54 PM |
Why do scripts that SPECIFICALLY want it to change the color to Bright blue or Black get confused between each other -_-
I tell it to make it Bright blue, it goes to Black and vice versa. And when I script it to see what teamcolor the player is, it confuses the two as well. |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2013 04:55 PM |
| You're probably not setting it correctly, post your code. |
|
|
| Report Abuse |
|
|
|
| 25 Jun 2013 05:41 PM |
Okay so now it doesn't work for Bright green either. Neutral TeamColor is Bright blue Allies is Bright green Raiders is Black
THOSE 3 never get tools. The Neutral team ISNT supposed to get them anyway. But the other two are. The neutrals are made to be immortal, and that part works fine. It doesn't work on anybody EXCEPT the Neutral team. But then it removes the ENTIRE Backpack for the Raiders, Neutrals, and Allies, which makes NO sense since it only removes the tools themselves.
wait(1) if script.Parent.Parent.Parent.Parent.TeamColor == game.Teams["Neutral"].TeamColor then script.Parent.Parent.Parent.Parent.Character.Humanoid.Name = "Derp" l = script.Parent.Parent.Parent.Parent.Backpack:GetChildren() for i=1, #l do if l[i].ClassName == "Tool" then l[i]:remove() end end end |
|
|
| Report Abuse |
|
|