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

Exploit Banning? (A script that bans exploiters if an exploit is used.)

I'm looking for a script that detects exploits, and bans the player

because there is Filtering Enabled exploits, and ROBLOX doesn't really ban all of exploiters....

how would this work?

2 answers

✓ Accepted answer

Here. Put this in ServerScriptService as a Script

local Ban = {}
local PlayerGUINames = {"NoobGUI","SpawnGUI"."EbicGamz"} -- Put your GUI names here

game.Players.PlayerAdded:Connect(function(player) --Detects new players
	for i,v in pairs (Ban) do -- ignore these lines below. Only for banning the user!
		if player.UserId == v then -- Checks his userid for the bans table
			player:Kick("[Cheat detection] You have been banned from this server using cheats!") -- If the player attempts to join back, He will be banned from the server!
		end
	end -- ignore these lines above. Only for banning the user!

	player.PlayerGui.ChildAdded:Connect(function(GUI) -- Test new GUI's
		for i,v in pairs (PlayerGUINames) do -- Get the names from the table named "PlayerGUINames"
			if not GUI.Name == v then -- Check the GUI name 
				table.insert(Ban, Player.UserId) -- Ban the user
				player:Kick("[Cheat detection] You have been banned from this server using cheats!") -- Kick the scummy player
			end
		end
	end
end)

2 comments

0

easily bypassed idk what the issue is but https://prnt.sc/r9ajz2 idk man try again?

0

thanks :D

I used to use exploits so I might be of assistance. Some games when I'd inject my exploit I would get banned for Unexpected GUI. Basically make something that will detect a different GUI then what you made. It might become a tedious task, although it would be worth the price when your players aren't complaining.

3 comments

0

ok so, i will make it so the exceptions for playerguis are guis with certain names, i will make the guis names stuff like "NotAnExploitLol" and if the guis name isnt that, it will ban the player if that gui is detected

0

Sorry for responding late. Make a whitelist of all the GUIS that are supposed to be in the game. Like an anti-ban. If it detects something out of the ordinary then make it trigger the ban.

0

ok, i will. will be perfect

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