Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Brick isn't changing to the color I want it to?

Asked by 5 years ago

I have a brick that is supposed to change colors to red using Color3.new() but it's not working.

local Brick = script.Parent
Brick.Color3 = Color3.new(255,0,0)

1 answer

Log in to vote
1
Answered by 5 years ago

The problem you are having is VERY simple.

Instead of using Color3.new, use Color3.fromRBG() which uses Red Green and Blue instead.

local Brick = script.Parent
Brick.Color3 = Color3.fromRBG(255,0,0)
0
Thanks Draebrewop 114 — 5y
Ad

Answer this question