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

Decal Color Changer?

Hello, I need a script that will change the color of my decal, I know how to make a text label change colors and thats this script:

while true do
	for i=1, 255 do
		script.Parent.TextLabel.TextColor  = Color3.new(1,i/255,0) --red to orange
		wait()
	end
	for i=1, 255 do
		script.Parent.TextLabel.TextColor  = Color3.new(1- (i/255),1,0) --orange to green
		wait()
	end
	for i=1, 255 do
		script.Parent.TextLabel.TextColor  = Color3.new(0,1,i/255) --green to turquoise
		wait()
	end
	for i=1, 255 do
		script.Parent.TextLabel.TextColor  = Color3.new(0,1-(i/255),1) --turquoise to blue
		wait()
	end
	for i=1, 255 do
		script.Parent.TextLabel.TextColor  = Color3.new(i/255,0,1) --blue to purple
		wait()
 	end
	for i=1, 255 do
		script.Parent.TextLabel.TextColor  = Color3.new(1,0,1-(i/255)) --purple to red
 		wait()
 	end
end 

Maybe you can revise that to where it changes the color? Well, thanks!

-- Toby Scott aka ExplicitToby

1 comment

0

Please Correctly format you code. Make sure the '~~~' are on a seperate line that any words.

1 answer

Unless your decal is transparent you can't change the colour of it with Roblox unless you've pre-made them and then change the ID via a script.

Just to mention, this isn't a request site. You should go away and have a go yourself and come back when you've hit some problems. Also for future reference, the ~~~~~~~~~~ of the codeblock should be above and below your code and not on the same lines otherwise it won't work, as demonstrated by yourself.

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