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?
Here. Put this in ServerScriptService as a Script
01 | local Ban = { } |
02 | local PlayerGUINames = { "NoobGUI" , "SpawnGUI" . "EbicGamz" } -- Put your GUI names here |
03 |
04 | game.Players.PlayerAdded:Connect( function (player) --Detects new players |
05 | for i,v in pairs (Ban) do -- ignore these lines below. Only for banning the user! |
06 | if player.UserId = = v then -- Checks his userid for the bans table |
07 | 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! |
08 | end |
09 | end -- ignore these lines above. Only for banning the user! |
10 |
11 | player.PlayerGui.ChildAdded:Connect( function (GUI) -- Test new GUI's |
12 | for i,v in pairs (PlayerGUINames) do -- Get the names from the table named "PlayerGUINames" |
13 | if not GUI.Name = = v then -- Check the GUI name |
14 | table.insert(Ban, Player.UserId) -- Ban the user |
15 | player:Kick( "[Cheat detection] You have been banned from this server using cheats!" ) -- Kick the scummy player |
16 | end |
17 | end |
18 | end |
19 | end ) |
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.