Black and white filter made by chatgpt open source
Key RequiredUniversal

Black and white filter made by chatgpt open source

Universal Scriptowlguy17owlguy17 624 views 59 executesUpdated Nov 29, 2025
Unrated
00
Lua Script•36 lines (1207 chars)
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")
local player = Players.LocalPlayer

-- Crear GUI toggle
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "InvertToggleGUI"
screenGui.Parent = player:WaitForChild("PlayerGui")

local toggleBtn = Instance.new("TextButton")
toggleBtn.Size = UDim2.new(0, 40, 0, 40)
toggleBtn.Position = UDim2.new(0, 20, 0, 50)
toggleBtn.BackgroundColor3 = Color3.fromRGB(50,50,50)
toggleBtn.TextColor3 = Color3.fromRGB(255,255,255)
toggleBtn.Font = Enum.Font.SourceSansBold
toggleBtn.TextSize = 18
toggleBtn.Text = "Grayscale"
toggleBtn.Active = true
toggleBtn.Draggable = true
toggleBtn.Parent = screenGui

-- Crear el ColorCorrectionEffect
local colorInvert = Instance.new("ColorCorrectionEffect")
colorInvert.Name = "ColorInvert"
colorInvert.Saturation = -1 -- Esto invierte los colores
colorInvert.TintColor = Color3.fromRGB(255,255,255) -- opcional
colorInvert.Enabled = false
colorInvert.Parent = Lighting

-- Toggle function
local inverted = false
toggleBtn.MouseButton1Click:Connect(function()
    inverted = not inverted
    colorInvert.Enabled = inverted
    toggleBtn.Text = inverted and "Normal" or "Grayscale"
end)

Features & Information

toggle b&w colors black and white color filter
#color#color filter

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts