
1.9k Views
469 Executions
Greenscreen
Universal Script 📌
509clint_dev10K executions
4 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
just a simple greenscreen. press F3 to toggle it
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
0Log in to join the conversation. Login
No comments yet. Be the first!







