
513 Views
71 Executions
getgenv shp hookfunction hookmetamethod for putrid bad execs
Universal Script 📌
dolteddownPublished 5
6 months ago
Please login to perform these actions:Does it work?
Early reports0% say it works · 1 report in the last 2 weeks
Also noticed:
Description
(OPEN SOURCE) this adds getgenv(), sethiddenproperty, and both hooks to your executor only needs setscriptable for sethiddenproperty
function getgenv()
return getfenv(0)
end
getgenv().gethiddenproperty = gethiddenproperty or newcclosure(function(_Instance, _Property)
local x, UGCValidationService = pcall(game.GetService, game, "UGCValidationService")
if x then
local y, z = pcall(UGCValidationService.GetPropertyValue, UGCValidationService, _Instance, _Property)
if y then
return z
end
end
end)
getgenv().sethiddenproperty = sethiddenproperty or newcclosure(function(_Instance, _Property, _Value)
local setscriptable = setscriptable
if setscriptable == nil then
return warn("setscriptable does not exist")
else
setscriptable(_Instance, _Property, true)
_Instance[_Property] = _Value
setscriptable(_Instance, _Property, false)
end
end)
getgenv().hookfunction = function(func, rep)
for i,v in pairs(getfenv()) do
if v == func then
getfenv()[i] = rep
end
end
end
getgenv().hookmetamethod = function(func, rep)
for i,v in pairs(getgenv()) do
if v == func then
getgenv()[i] = rep
end
end
end









these are not accurate
what are those pictures bro.