Subracting adds to numbert instead of subtracting

  1. What do you want to achieve? I want a ColorCorrection’s Saturation property to go to -1.

  2. What is the issue? the Saturation property instead goes up to 1.

  3. What solutions have you tried so far? i have already looked for other solution but none had to do with what i need.

The script: (local script) this is a death effect.

	local blur = Instance.new("BlurEffect")
	local color = Instance.new("ColorCorrectionEffect")
	blur.Parent = game.Lighting
	color.Parent = game.Lighting
	color.TintColor = Color3.fromRGB(255, 0, 0)
	local Num = 255
	while blur.Size > 0 do
		Num = Num + 20
		blur.Size = blur.Size - 1
		wait(0.1)
		color.TintColor = Color3.fromRGB(Num, Num, Num)
		color.Saturation = color.Saturation - 0.1 --here is the problem
		print(Num)
	end
	blur:Destroy()
	print("Blur!")
end)

i have found a temporary solution for now but i would be glad if someone was able to help.

Apparently, there’s a gimmick with saturation when you only have red color.

Normal

Saturation -1

TintColor 255, 0, 0

TintColor 255, 0, 0 with Saturation -1

Couldn’t you just use TweenService?

This loop doesn’t really seem necessary

i forgot that TweenService exists. My bad

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.