that hook is Detectable [Char]
It’s 2023!
I don’t know if you’ve found a solution yet, but I’m putting this here anyway for any other devs scrolling through trying to find one.
I have no clue know why, but Instance:IsDescendantOf(game:GetService(“CoreGui”)) gets around the security class.
So you could do something like this in a LocalScript:
game.Loaded:Wait() -- wait for game to load
task.wait(1) -- waiting just incase
script.Parent=nil -- parent script to nil, makes it slightly more secure, though can still be bypassed
game.DescendantAdded:Connect(function(descendant)
if descendant:IsDescendantOf(game:GetService("CoreGui")) then
descendant:Destroy()
end
end)
This script prevents Instances from being added into CoreGui, though exploit devs can get around this (most executors likely have a secure method to get around this sort of stuff).
(found this on a discord server so I thought I’d share it)
1 Like