Color3 working for only 1 texture?

Hello! fairly new to scripting and I am trying to make a Animated camo looking thing. With that I am also making a Rainbow Fade color changing script with it.

Not sure why it is only seeming to work for one Texture? I tried to put the script in every single texture spot but still hasn’t done much?

while true do
	script.Parent.Texture.Color3 = Color3.new(255/255,0/255,0/255)
	for i = 0,255,10 do
		wait()
		script.Parent.Texture.Color3 = Color3.new(255/255,i/255,0/255)
	end
	for i = 255,0,-10 do
		wait()
		script.Parent.Texture.Color3 = Color3.new(i/255,255/255,0/255)
	end
	for i = 0,255,10 do
		wait()
		script.Parent.Texture.Color3 = Color3.new(0/255,255/255,i/255)
	end
	for i = 255,0,-10 do
		wait()
		script.Parent.Texture.Color3 = Color3.new(0/255,i/255,255/255)
	end
	for i = 0,255,10 do
		wait()
		script.Parent.Texture.Color3 = Color3.new(i/255,0/255,255/255)
	end
	for i = 255,0,-10 do
		wait()
		script.Parent.Texture.Color3 = Color3.new(255/255,0/255,i/255)
	end
end


image

Change the names of the Textures.

1 Like

Explanation:
The reason why it’s only working for 1 Texture, is because you’re only changing that 1 Texture as @GoteeSign said so it’s only picking one Texture and not all

To fix it, you can change all of the Textures’ names to different ones (Texture1, Texture2, Texture3, etc) So that they’re all named separately, and change your script.Parent.Texture to script.Parent.Texture1 as well so that the script knows what specific Texture it’s looking for when changing the Color

Oh…what a palm to the head…Thank you! :smile: