of     2   
chevron_rightchevron_rightchevron_right

200AB
#34956011Tuesday, October 05, 2010 7:11 PM GMT

Yeah, like title says, I'm trying to make a command to create a new Team, it works excellent, the only problem is that when it comes to the part for putting in the TeamColor, no matter what color the person says, the team always pops up with default color, Medium Stone Brown or something I think. Been messing with it for days now, and I just can't figure it out. Here's the line of code that is messed up:( newTeam.TeamColor = BrickColor.new(string.sub(msg,thanum)) ) And if it's needed, i'll put the var used with i (thanum), it was used this time to find the amount of characters thats used for the Team name, in between the start of command (maketeam/) and whats after the second / that begins the team color. (maketeam/TeamNameGoesHere/TeamColorGoesHere) Ex: maketeam/200ABTeam/Really red heres thanum/i:( for i =10,100 do (other stuff inbetween but i'm just putting i & thanum) thanum = i ) So like i said, the command works. It creates the team with the Team name that was said, and it all works good, but the ONLY thing that wont work is when stating the TeamColor, it's not because its not said right, like reallyred instead of Really red or new Yeller instead of New Yeller , nothing like that, it has something to do with BrickColor.new that I messed up on. Thanks in advance anyone who helps!
crazypotato4
#34956240Tuesday, October 05, 2010 7:16 PM GMT

that thanum would make 90 different teams, unless you're breaking the loop at a random time. Do you want to make a team with the teamcolor of the command? or a random teamcolor?
200AB
#34956351Tuesday, October 05, 2010 7:19 PM GMT

It breaks the loop. Like I said, I am not showing any of the extra stuff, just the things I see someone may need. Anyway, if you read what I said, I want it to make the team with the team color that the person who said the command said, ex, if the person said: maketeam/LolTeam/New Yeller it would make a team with the name LolTeam & the color New Yeller. Everything works but the team color part.
crazypotato4
#34956382Tuesday, October 05, 2010 7:19 PM GMT

well we would probably have to see the part that figures out what team color it is.
200AB
#34956558Tuesday, October 05, 2010 7:23 PM GMT

i know you're trying to help, and I'm very greatful, don't get me wrong, but please read what I said in my thread. newTeam.TeamColor = BrickColor.new(string.sub(msg,thanum)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ That part(if it worked) would check what the person said, and start looking for the part directly after maketeam/TheTeamName/ Right after the second / it would copy the words & use them for the color, like New Yeller, or Really red
200AB
#34957664Tuesday, October 05, 2010 7:49 PM GMT

bump
200AB
#34958272Tuesday, October 05, 2010 8:00 PM GMT

bump~~
200AB
#34958927Tuesday, October 05, 2010 8:11 PM GMT

Bummmpppp
200AB
#34959338Tuesday, October 05, 2010 8:18 PM GMT

Bumpbumpbumpbumpbumpbump
200AB
#34960004Tuesday, October 05, 2010 8:28 PM GMT

BUMMMMMP. :/
CounterCrysis
#34960381Tuesday, October 05, 2010 8:33 PM GMT

Please stop bumping this forum, its considered spamming. If no one answers then that means ether its to hard, its not possible, or people jsut done know. -happyboy (Causing hell since 1995)
crazypotato4
#34960418Tuesday, October 05, 2010 8:34 PM GMT

I thought AFF was on... ._.
200AB
#34960651Tuesday, October 05, 2010 8:37 PM GMT

Excuse me, but the point of bumping is to be used when your post goes far down the page(s). Spam is something that is completely useless to everyone & is posted multiple times in a forum or forums. I do not think that's what I'm doing. And if I need a answer, aslong as I don't flood the forum & post every 10-15secs, I have every right to keep bumping my post.
200AB
#34961406Tuesday, October 05, 2010 8:49 PM GMT

Bump.... Probably my last bump for awhile. Again, thanks to anyone whos attempted to help me & hopefully someone will fix this problem.
AgentFirefox
Top 100 Poster
#34965349Tuesday, October 05, 2010 9:42 PM GMT

Really? for i = 10, 100 do WHY use that junk? Just use the simple string.find() instead of iterating through 90 numbers to look for the space... -____________- @crazy I had to help backfill the driveway. Got a new concrete drive over the summer. ^_<
200AB
#34969303Tuesday, October 05, 2010 10:53 PM GMT

To me this way is simpler. Anyway, can anyone help with the problem i made this thread because of?
kirkyturky12
#34969776Tuesday, October 05, 2010 11:05 PM GMT

Im making a make team command as well! I have found that it is a little to advanced for me to make alone. I cant make the color part... Heres what i have: if (string.sub(msg,1,9) == "maketeam/") then name = string.sub(msg,10) t = Instance.new("Team", game.Teams) t.Name = name end end
200AB
#34972044Tuesday, October 05, 2010 11:42 PM GMT

Bump....
200AB
#34974052Wednesday, October 06, 2010 12:12 AM GMT

Bump...!
200AB
#34976141Wednesday, October 06, 2010 12:39 AM GMT

Bummppp....
200AB
#34977437Wednesday, October 06, 2010 12:55 AM GMT

ugh...bump.
ArceusInatorX
#34980986Wednesday, October 06, 2010 1:36 AM GMT

...thanum is a string... C=BrickColor.new(tonumber(string.sub(msg, thanum)))
200AB
#34992612Wednesday, October 06, 2010 12:57 PM GMT

No...really?! Lol wow... You do relize that BrickColor.new() can also be a STRING right? And you would have known I knew that & was trying to get it where they say color, and it makesa the TeamColor that color if you actually read any posts made in this thread. Thanks for trying anyway.
300AB
#34994095Wednesday, October 06, 2010 2:53 PM GMT

hi bro =D
200AB
#35003083Wednesday, October 06, 2010 7:49 PM GMT

bump

    of     2   
chevron_rightchevron_rightchevron_right