so i have this script which does: if you touch it the colors on your camera become inverted.
what i want it to do is when i touch it a few sec afterwards the colors become normal. ive also made a bloom, depth of field and sky effect which i only want to be enabled when the colors are inverted.
explained short:
touch the brick, colors become inverted, the bloom, depth of field and sky effect become enabled. touch the brick again and colors become normal, bloom, depth of field and sky effect go away.
(with sky effect i mean the sky option in lighting which changes the sun size and texture)
script.Parent.Touched:Connect(function(Hit)
local Player = game:GetService("Players"):GetPlayerFromCharacter(Hit.Parent)
if not Player then return end
local Remotes = game:GetService("ReplicatedStorage"):FindFirstChild("Remotes")
if not Remotes then return end
local Other = Remotes:FindFirstChild("Other")
if not Other then return end
Other:InvokeClient(Player, "SetInvert", true)
end)