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

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

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.


3 comments

0

try brickcolor instead of color

0

but what if i wanted to do it with RGB

0

I mean...I guess I will try it, thanks!

1 answer

✓ Accepted answer

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

4 comments

0

Thanks so much!

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

0

@LeedleLeeRocket, Bruh LOL

0

Wow ???? its been 2 weeks already...

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