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

Not sure how to properly check if the background is a certain color?

if script.Parent.BackgroundColor == BrickColor.new(255, 102, 102) then
		game.Workspace.RedScore.Value = game.Workspace.RedScore.Value + 1

Hello, so I'm working on this one script and its rather small so nothing else is important, though this is the piece that I need help with because it doesn't work, now I don't know whether or not you can't make local scripts effect things in the workspace, or maybe I'm checking what the background color is a wrong way, but I need help :/ I've tried different ways like BackgroundColor3 == 255,102,102 but that doesn't work, anyone?

2 answers

if script.Parent.BackgroundColor == Color3.fromRGB(255, 102, 102) then
        game.Workspace.RedScore.Value = game.Workspace.RedScore.Value + 1

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