I want to have some people’s screens unsaturated while the others aren’t, and I don’t know how to do that. Is there a possible way I can do this?
1 Like
local Players = game.Players:GetChildren()
for _, player in pairs(Players) do
if player -[[ Whatever qualification they need]]- then
-- What you want to happen to that player
end
Simple. Just create it on the client.
--//Services
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")
--//Variables
local Player = Players.LocalPlayer
--//Functions
local function Saturate(toggle)
if toggle then
if Lighting:FindFirstChild("ColorCorrection") == nil then
local ColorCorrection = Instance.new("ColorCorrectionEffect")
ColorCorrection.Parent = Lighting
ColorCorrection.Name = "ColorCorrection"
ColorCorrection.Saturation = 1 -- or whatever you're setting it to
else
warn("ColorCorrectionEffect already exists.") -- already exists.
end
elseif not toggle then
if Lighting:FindFirstChild("ColorCorrection") ~= nil then
Lighting.ColorCorrection:Destroy() -- remove saturation
end
end
end
--//Events
-- ?
--//Main
Saturate(true) -- send true to toggle
Saturate(false) -- send false to not toggle
3 Likes