Background:
In my Character Creation I have a string value that store's the player BrickColor name.
Such as:
1 | local StringValue.Value = "Really red" |
Question: How do I go about converting that string value to an actual BrickColor. When the player joins their BrickColor's name is saved in the string, but I can't just say
1 | Player.Character [ "Right Leg" ] .BrickColor = StringValue.Value |
because it outputs: bad argument #3 to 'BrickColor' (BrickColor expected, got string)
Is there a way to convert this?
I figured out how to do it just convert the whole thing to a BrickColor.
So
1 | Player.Character [ "Right Leg" ] .BrickColor = BrickColor.new(StringValue.Value) |
Closed as off-topic by Goulstem
This question has been closed by our community as being off-topic from ROBLOX Lua Scripting.
Why was this question closed?