So I am writing an anti-cheat and I am stuck on this one part. When something is removed from the PlayerGui, it should kick the player, but it errors saying “PlayerGui is not a valid member of player”
The module:
_player.PlayerGui.ChildRemoved:Connect(function()
if not table.find(_WhitelistedGuis , _player.PlayerGui) then
_kick("4.4 (GUI Removed)")
end
end)
Any help would be appreciated, thanks! (note: the kick function works)
If this is an anticheat, and is handled by a localscript, then the cheaters will 100% just remove you script before tampering with their own playergui so they don’t get kicked
No matter how hard you hide it, if your anti cheat has localised checks they can be bypassed and tampered. Why anyone would even care if an exploiter deletes a GUI locally I am not sure. I do not think this will have a good end result.