Universal Script 📌
631 Views
62 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
Universal Script 📌
162.2k
51.2k
Bumped 35 minutes ago
Universal Script 📌
9.9k
60.7k
Bumped 2 hours ago
Key System
Universal Script 📌
4.0k
10.5k
Bumped 2 hours ago
Script hub
272.9k
884.6k
Bumped 2 hours ago
Key System

Script hub

#16 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features