Universal Script 📌
648 Views
121 Executions

Black and white filter made by chatgpt open source

Universal Script 📌
owlguy17
owlguy17Published 5
1 year 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
2.0M
627.3k
Bumped 1 hour ago
Key System
Script hub
202.4k
2.3M
Bumped 3 hours ago
Key System

Script hub

#20 this week

Verified script badgeAirflow HUB

Universal Script 📌
57.4k
270.8k
Bumped 5 hours ago
Key System
Script hub
2.2M
2.5M
Bumped 8 hours ago
Key System
Universal Script 📌
33.4k
481.4k
Bumped 8 hours ago
Script hub
4.0M
2.7M
Bumped 8 hours ago

Script hub

Hall of Fame #5

KeylessVerified script badge[KEYLESS] Moondiety Script | 30+ supported Games