Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you get a full brickcolor?

Asked by 4 years ago

Hello,

Context: - I'm trying to create an !addteam player color command to my game.

Problem: - I am having trouble with finding a brickcolor shortening algorithm. I would want something like this:

print(Shortening("Really re")) -- -> Really Red

I do not know how to start scripting this, as I cannot find a table with every brickcolor in it to run a comparison.

Any advice/solutions you have will be appriciated.

Tweakified

0
I would be guessing using color codes, which a simple google search can find. Pooglies 7 — 4y
0
string.find greatneil80 2647 — 4y
0
How can you use string.find, when I don't have an array of all of the BrickColors? Tweakified 117 — 4y
0
Wait, will this command create a team or will the team already be there? If it's already there you can go through the teams and compare BrickColors from there Ankur_007 290 — 4y
0
It is supposed to create a new team. The command would be like !addteam A Really red. -> Creates a team (named A) with the team color red Tweakified 117 — 4y

Answer this question