Universal Script 📌
639 Views
78 Executions

Black and white filter made by chatgpt open source

Universal Script 📌
owlguy17
owlguy17Published 5
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

toggle b&w colors black and white color filter

View Raw
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)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
157.9k
496.6k
Bumped 7 minutes ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub OP SCRIPT

Universal Script 📌
597.6k
4.2M
Bumped 1 hour ago
Script hub
50.8k
320.4k
Bumped 3 hours ago

Script hub

Nameless Admin

Script hub
176.8k
1.6M
Bumped 4 hours ago
Key System
Script hub
46.7k
11.6k
Bumped 7 hours ago
Key System
Paid