Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[BrickColor] Please Help?

I want to check a brick color of a part but this isnt working! Please Help! :D

wait(3)
if script.Parent.BrickColor == "Really red" then
	h = Instance.new("Hint", game.Workspace)
	h.Text = "Motor Over Heating"
	wait(4)
	h:Remove()
end

2 answers

✓ Accepted answer

Here

wait(3)
if script.Parent.BrickColor == BrickColor.new("Really red") then
    h = Instance.new("Hint")
    h.Parent = game.Workspace
    h.Text = "Motor Over Heating"
    wait(8.5) -- Change back to 4, I just like to have it to where it is made sure people read it.
    h:Destroy() -- 'Remove' Is Old, Use Destroy, Remove Removed it, but Causes errors(It is pretty Old) Destroy Destroys it and Causes no errors(New but can cause error if used Wrongly)
end
wait(3)
if script.Parent.BrickColor.Name == "Really red" then
    h = Instance.new("Hint", game.Workspace)
    h.Text = "Motor Over Heating"
    wait(4)
    h:Destroy()
end

it should be BrickColor.Name since the name is a string

just in case, Hint are depricated

This discussion is preserved as it was. New answers, comments, and votes are closed.