Universal Script 📌
259 Views
89 Executions

negative effect toggle universal 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

makes the entire world have negative colors and with a toggle button draggable open source MADE WITH CHATGPT

View Raw
local Lighting = game:GetService("Lighting")

-- Crear los 2 efectos de ColorCorrection
local invert1 = Instance.new("ColorCorrectionEffect")
invert1.Name = "Invert1"
invert1.Parent = Lighting
invert1.Contrast = -1
invert1.Saturation = 0
invert1.Brightness = 0

local invert2 = Instance.new("ColorCorrectionEffect")
invert2.Name = "Invert2"
invert2.Parent = Lighting
invert2.Contrast = -1
invert2.Saturation = 0
invert2.Brightness = 0

-- Toggle GUI
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

local screenGui = Instance.new("ScreenGui")
screenGui.ResetOnSpawn = false   -- <<--- lo que pediste
screenGui.Name = "InvertToggleGUI"
screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")

local toggleBtn = Instance.new("TextButton")
toggleBtn.Size = UDim2.new(0,50,0,50)
toggleBtn.Position = UDim2.new(0,20,0,20)
toggleBtn.Text = "Toggle Invert"
toggleBtn.Parent = screenGui
toggleBtn.Draggable = true

local enabled = true

toggleBtn.MouseButton1Click:Connect(function()

	-- multiplicar por -1 elimina bugs visuales
	invert1.Contrast = invert1.Contrast * -1
	invert2.Contrast = invert2.Contrast * -1


Comments

4
Log in to join the conversation. Login
owlguy17's profile picture
owlguy17Uploader11 months ago

fixed bugs

1
Untr's profile picture
Untr11 months ago

ai

1
owlguy17's profile picture
owlguy17Uploader11 months ago

@Untr yes but it works

1
Untr's profile picture
Untr11 months ago

@Randomguy1997 ai

1

Tags

More universal scripts

See all
Script hub
425.5k
815.6k
Bumped 34 minutes ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 71 Supported Games + OP!

Script hub
3.0M
387.8k
Bumped 34 minutes ago
Key System

Script hub

Hall of Fame #8

Verified script badgeOverflow #1 SAE, MM2 & More

Universal Script 📌
51
1
Approved 37 minutes ago
Universal Script 📌
162.3k
51.2k
Bumped 1 hour ago