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