Universal Script 📌
1.9k Views
469 Executions

Greenscreen

Universal Script 📌
509clint_dev
509clint_dev10K executions
4 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

just a simple greenscreen. press F3 to toggle it

View Raw
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer
local camera = workspace.CurrentCamera

local gui = nil
local connection = nil
local isEnabled = false

local function getSyncPairs(realObj, cloneObj, pairsTable)
    if realObj:IsA("BasePart") and cloneObj:IsA("BasePart") then
        cloneObj.Anchored = true
        table.insert(pairsTable, {real = realObj, clone = cloneObj})
    end
    
    local realChildren = realObj:GetChildren()
    local cloneChildren = cloneObj:GetChildren()

    local cloneMap = {}
    for _, child in ipairs(cloneChildren) do
        local key = child.Name .. child.ClassName
        if not cloneMap[key] then cloneMap[key] = {} end
        table.insert(cloneMap[key], child)
    end
    for _, child in ipairs(realChildren) do
        local key = child.Name .. child.ClassName
        if cloneMap[key] and #cloneMap[key] > 0 then
            local matchedClone = table.remove(cloneMap[key], 1)
            getSyncPairs(child, matchedClone, pairsTable)
        end
    end
end

local function togglePerfectGreenScreen()
    isEnabled = not isEnabled
    
    if isEnabled then
        local character = player.Character


Comments

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

Tags

More universal scripts

See all
Universal Script 📌
36
7
Approved 1 hour ago
Universal Script 📌
4.1k
185.5k
Bumped 8 hours ago
Script hub
784
52
9 hours ago
Universal Script 📌
29.0k
674.0k
Bumped 11 hours ago
Script hub
14.1k
2.7k
Bumped 13 hours ago
Key System
Paid