Hello! I was wondering how I can check if a BrickColor is something (Eg: if part.BrickColor == "Quill grey" then
)
Checking for strings doesn’t work and there doesn’t seem to be any Enum.BrickColor. Any help would be much appriciated. Thanks!
Hello! I was wondering how I can check if a BrickColor is something (Eg: if part.BrickColor == "Quill grey" then
)
Checking for strings doesn’t work and there doesn’t seem to be any Enum.BrickColor. Any help would be much appriciated. Thanks!
If Part.BrickColor == BrickColor.red then
print(“Part color is red”);
end;
if part.BrickColor==BrickColor.new("Quill grey") then
Why did you put ;
at the end of each line?
It’s just personal preference (most of the time).
It essentially does nothing, it’s just a force or habit of mine, please ignore it!
But if you’ve found the answer to your problem, please select a solution.
Checking for strings doesn’t work and there doesn’t seem to be any Enum.BrickColor. Any help would be much appriciated. Thanks!
‘BrickColor’ values have a ‘Name’ property that you can index.
if Part.BrickColor.Name == "Quill grey" then
https://developer.roblox.com/en-us/api-reference/datatype/BrickColor