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

[SOLVED] How to code a color changing brick script?

Asked by
iivSnooxy 248 Moderation Voter
4 years ago
Edited 4 years ago

Figured how to fix it i was missing the "Color"...

local Blue = script.Parent

while true do
Blue.Color = Color3.fromRGB(255, 0, 0)
wait(1)
Blue.Color = Color3.fromRGB(234, 255, 0)
wait(1)
Blue.Color = Color3.fromRGB(0, 16, 176)
wait(1)
end

2 answers

Log in to vote
0
Answered by 4 years ago

Change "script.Parent" on your variable to "script.Parent.Color" I know someone already answered this, but it's faster than doing Blue.Color.

0
Are you sure? iivSnooxy 248 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

You have to change the Color property of Blue, not Blue itself.

Blue.Color = Color3.fromRGB()

Answer this question