Can you check if a player uses a hack gui like that?

So I came up with that idea, I just want to know if you can check if a player uses a hack gui like that:

There is a RemoteFunction in ReplicatedStorage called “Check”

Script:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

local CheckEvent = ReplicatedStorage:WaitForChild("Check")

local AbleGuis = {"InventoryGui"}

while true do
	for _, player in pairs(game:GetService("Players"):GetPlayers()) do
		local IsOk = CheckEvent:InvokeClient(player, player, AbleGuis)
		
		if IsOk == true then
			continue
		elseif game.Players:FindFirstChild(IsOk) then
			game.Players:FindFirstChild(IsOk):Kick("Exploit")
		end
	end
	
	wait(5)
end

LocalScript:

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local CheckEvent = ReplicatedStorage:WaitForChild("Check")

local GoodGuis = 0

CheckEvent.OnClientInvoke = function(Player, AbleGuis)
	if (#AbleGuis + 3) == #Player:WaitForChild("PlayerGui"):GetChildren() then -- + 3 because of the default guis
		
		return true
	else
		return Player.Name
	end
end

Most exploits parent their GUIs to the CoreGui, you cannot detect that.

Hello there,

I’m not sure about this. But I would say no because, first of all you need to inject with the Roblox application. Second of all nobody else see’s the GUI because it is not ServerSided.

U only can detect exploits by movements, disabling scripts and adding stuff to their own character or game. Exploiters on the Platform are still 1 of the biggest problems. A anti-exploit works most of the time. Only most people don’t know a much about it and can’t make one. I would not rather to watch YouTube Tutorials because that are 1 off the simpelst exploit scripts u can make.

I don’t know really a much more about it. I only can tell u most good exploit developers can make it unreadable with weird text functions and weird characters. For more questions u don’t need to ask me.

Kind Regards,
DutchBuilds.