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:


local Part = Workspace.Part while true do Part.Color = Color3.fromRGB (3,7,5) wait(1.5) Part.Color = Color3.fromRGB (7,18,4) wait(1.5) Part.Color = Color3.fromRGB (6,17,3) wait(1.5) Part.Color = Color3.fromRGB (4,2,6) end --Is There something wrong here? --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:

local Part = game.Workspace.Part

while true do
    Part.BrickColor = BrickColor.new("newcolor")
    wait(1.5)
    Part.BrickColor = BrickColor.new("newcolor")
    wait(1.5)
    Part.BrickColor = BrickColor.new("newcolor")
    wait(1.5)
    Part.BrickColor = BrickColor.new("newcolor")

end

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