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

How do I get the Fogcolor to scroll through the colours?

Im trying to get the Fogcolour in game.Lighting.Fogcolor to go through the colours how would I do that?

3 comments

0

Wich colors are you talking about? I suppose you mean lerp. "Color3:lerp(Color3 goal, number alpha)"

0

Well Im pretty new to scripting but I asked someone and they said to "loop the RGB" I don't exactly know how

0

How many colors are there? What is "all of them"? What order do you want to go in? Do you really want all of them? Should it be "smooth"?

1 answer

✓ Accepted answer

Loop it.

while true do
	for b = 1,256 do
		for g = 1,256 do
			for r = 1,256 do
				game.Lighting.FogColor = Color3.new(r,g,b)
				wait()
			end
		end
	end
end

3 comments

1

Accepting answer would be enough for me if this script helped you :)

0

You're using the wrong constructor, Color3.fromRGB is what you want. Also, it's from 0 to 255, not 1 to 256.

0

This loop takes more than 6 days to finish, is there perhaps a better method?

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