Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Turn on greyscale button?

Asked by
par1d 19
5 years ago

Does anybody know how to make it so when you click on a GUI a player's view turns to greyscale?

0
Scripting Helpers is not a request site tomekcz 174 — 5y
0
if my answer worked can u plz accept it :) MoonBarc 24 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

What you could do is have a localscript that detects when the GUI button is pressed and then you can insert the ColorCorrection effect. Setting the saturation to a negative value makes it look grayscale.

Here's what the localscript might look like:

local guiButton = script.Parent
guiButton.MouseButton1Click:Connect(function()
    local effect = Instance.New("ColorCorrectionEffect")
    effect.Saturation = -1
    effect.Parent = game:GetService("Lighting")
end)
Ad

Answer this question