I want to check a brick color of a part but this isnt working! Please Help! :D
1 | wait( 3 ) |
2 | if script.Parent.BrickColor = = "Really red" then |
3 | h = Instance.new( "Hint" , game.Workspace) |
4 | h.Text = "Motor Over Heating" |
5 | wait( 4 ) |
6 | h:Remove() |
7 | end |
Here
1 | wait( 3 ) |
2 | if script.Parent.BrickColor = = BrickColor.new( "Really red" ) then |
3 | h = Instance.new( "Hint" ) |
4 | h.Parent = game.Workspace |
5 | h.Text = "Motor Over Heating" |
6 | wait( 8.5 ) -- Change back to 4, I just like to have it to where it is made sure people read it. |
7 | 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) |
8 | end |
1 | wait( 3 ) |
2 | if script.Parent.BrickColor.Name = = "Really red" then |
3 | h = Instance.new( "Hint" , game.Workspace) |
4 | h.Text = "Motor Over Heating" |
5 | wait( 4 ) |
6 | h:Destroy() |
7 | end |
it should be BrickColor.Name since the name is a string
just in case, Hint are depricated