Universal Script 📌
91.9k Views
41 Executions

Restricted Enviroment

Universal Script 📌
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

Prototype and rushed, this script attempts or tries i guess to make a virtual enviroment

Updates

  1. Script edited: Update script

View Raw

local clone = clonefunction(table.clone)
local function deepCopy(orig)
	local copy = {}
	for k, v in pairs(orig) do
		if type(v) == "table" then
			copy[k] = deepCopy(v)
		else
			copy[k] = v
		end
	end
	return clone(copy)
end

local function wrapFuncs(t)
  local wrapped = {}
  for k,v in pairs(t) do
    if type(v) == "function" then
      wrapped[k] = newcclosure(v)
    elseif type(v) == "table" then
      wrapped[k] = wrapFuncs(v)
    else
      wrapped[k] = v
    end
  end
  return wrapped
end

local Copy = function(t)
  if type(t) == "table" then
    return wrapFuncs(deepCopy(t))
  elseif type(t) == "function" then
    return clonefunction(t)
  else
    print(type(t))
  end
end

local function createProtectedTable(t)
  local protected = Copy(t)


Comments

4
Log in to join the conversation. Login
UnnesscaryInventions's profile picture
UnnesscaryInventionsUploader1 year ago

*, please dm me and pay me 1000 dollarinos to uncurse your eys @FalseSecruity

2
FalseSecurity's profile picture
FalseSecurity1 year ago

wtf is this heap of trash that has just cursed my eyes

1
UnnesscaryInventions's profile picture
UnnesscaryInventionsUploader1 year ago

no

1
elimiqueiasero's profile picture
elimiqueiasero1 year ago

stop

1