How can I detect the mobile players?

I wanted to make a script that detects and kicks whoever has a exploit kit. No one dares to mess up my game! It was going very well. It works on computer but I realize, it doesn’t work on mobile. It was like a kicking machine, kicking all the mobile players left and right and until the servers is empty. I only know how to detect exploiters but not the mobile players. :frowning_face:

local NumberOfGui = 4

game.Players.PlayerAdded:Connect(function(player)
	wait(5)
	if #player.PlayerGui:GetChildren() ~= NumberOfGui then
	player:Kick("No Bad Extensions Allowed!")
	end
end)

Alright so a few notes:

  • You are checking on the server, so the changes shouldn’t replicate.
  • Exploiters don’t insert their GUIs into PlayerGui, they insert them into CoreGui or use an external drawing library without using Roblox GUIs at all.
  • Hardcoding the amount of GUIs in your script is probably a bad idea
3 Likes

Make sure to follow this categories rules about posting before trying to find a solution yourself.

PS: Your exploit system can really do for some fixing as they can store GUIs in CoreGui.

Developer Hub response that literally answers this: ModalEnabled.

1 Like