getgenv shp hookfunction hookmetamethod for putrid bad execs
Key RequiredUniversal

getgenv shp hookfunction hookmetamethod for putrid bad execs

Universal Scriptdolteddowndolteddown 499 views 51 executesUpdated Apr 16, 2026
Unrated
00
Lua Script•40 lines (1003 chars)
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

Features & Information

(OPEN SOURCE) this adds getgenv(), sethiddenproperty, and both hooks to your executor only needs setscriptable for sethiddenproperty

Community Comments (2)

IQUITEXPLOITINGIQUITEXPLOITINGMay 13, 2026

what are those pictures bro.

voltexvoltexSep 26, 2026

these are not accurate

More Scripts for Universal Scripts