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

ColorCorrection Script toggled on/off by players?

In my game I have a greyscale (black and white) effect however I would like it so players can be able to toggle it on or off locally by a GUI so a player can choose whether they would like to play the game with the greyscale effect or just in normal colour, how would I do this?

Here is the current ColorCorrection script:

Light = game:GetService("Lighting")
wait(1)
Bloom = Instance.new("SunRaysEffect",Light)
Bloom.Intensity = .2
Bloom.Spread = 1
ColorCorrection = Instance.new("ColorCorrectionEffect", Light)
ColorCorrection.Brightness = .2
ColorCorrection.Contrast = .5
ColorCorrection.Saturation = -.9
ColorCorrection.TintColor = Color3.fromRGB(104, 104, 104)


script:Destroy()

1 comment

0

You can manipulate the lighting section(including after effects) from the client, no need for remote events. Would love to help further but i'm in class lol...

1 answer

local script in a button(in gui)

local lighting = game:GetService("Lighting")

script.Parent.MouseButton1Click:Connect(function()
	lighting.ColorCorrection.TintColor = Color3.fromRGB(255,255,255)
end

This will only effect the player that clicks the button on their UI

2 comments

0

It doesn't seem to work,

0

This does not toggle it, it only sets tint color to full white. However, it gives you the basic idea of how it works.

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