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

I have been trying to make a color changing script but for some reason it doesn't work?

Asked by 4 years ago
Edited 4 years ago

So here I do not think it is an error but I feel like I am mssing something. Here is my code:

01local Part = Workspace.Part
02 
03while true do
04    Part.Color = Color3.fromRGB (3,7,5)
05    wait(1.5)
06    Part.Color = Color3.fromRGB (7,18,4)
07    wait(1.5)
08    Part.Color = Color3.fromRGB (6,17,3)
09    wait(1.5)
10    Part.Color = Color3.fromRGB (4,2,6)
11end
12 
13 
14--Is There something wrong here?
15--Coded in the Lua Interpreter.

Is the while loop not in the correct place?

Thanks for helping.


0
try brickcolor instead of color bdam3000 125 — 4y
0
but what if i wanted to do it with RGB dabberbestleader 14 — 4y
0
I mean...I guess I will try it, thanks! dabberbestleader 14 — 4y

1 answer

Log in to vote
1
Answered by
bdam3000 125
4 years ago

I think BrickColor is more simple in my opinion so:

01local Part = game.Workspace.Part
02 
03while true do
04    Part.BrickColor = BrickColor.new("newcolor")
05    wait(1.5)
06    Part.BrickColor = BrickColor.new("newcolor")
07    wait(1.5)
08    Part.BrickColor = BrickColor.new("newcolor")
09    wait(1.5)
10    Part.BrickColor = BrickColor.new("newcolor")
11 
12end
0
Thanks so much! dabberbestleader 14 — 4y
0
Btw, your script seemed like it didn't work because your rgb values were too low so it looked like it stayed black lol LeedleLeeRocket 1257 — 4y
0
@LeedleLeeRocket, Bruh LOL dabberbestleader 14 — 4y
0
Wow ???? its been 2 weeks already... dabberbestleader 14 — 4y
Ad

Answer this question