Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

anti-CoreGui injection help?

I'm quite stuck on an issue. I was working on a way to stop exploiters from adding in a custom guy to CoreGui, similar to how EISS works. However, I'm at a stand-still. Anyone have any scripting help on this?

--Basic Code Idea
function RemoveAdded(item,par)
if item.Parent == game:GetService(par) then
wait() -- needed to remove without errors
item:Destroy()
end

-- Child added function
game:GetService("CoreGui").ChildAdded:connecrt(function(child)
pcall(RemoveAdded(child,"CoreGui"))
end)

1 comment

0

If someone is cheating at the game, they can just remove this script. This kind of "security" is pointless. Simply never trust the client, and assume it will be completely broken.

1 answer

✓ Accepted answer

You need a higher context such as: a plugin or the command bar

Nothing else would work... Sorry :/

This discussion is preserved as it was. New answers, comments, and votes are closed.