Game Prevention Code

This is the code I use to protect my games from the numbers of botting instances.

  • I feel like this wouldn’t work because it’s not as advanced and I’m not a good scripter myself.
  • I feel like this could’ve been more ways to improve it.

Code:

game.Players.PlayerAdded:Connect(function(player)
	if player.AccountAge <= 10 then
		player:Kick("Account age is bellow game standards, you may come back after 10 days.")
	end
end)

Feel free to use it if you want.

1 Like

This will work but will mostly only kick new legitimate players.

Bot accounts tend to be either stolen or created long ago. You won’t be detecting any with this check.

6 Likes

I agree, Bot account usually have a month or so to be on Roblox, It won’t detect much. Although it does work, good job on that!

game.Players.PlayerAdded:Connect(function(player)
    if player.AccountAge <= 10 then
    	player:Kick("Account age is bellow game standards, you may come back after".. 10 - player.AccountAge.. " days.")
	end
end)
6 Likes

Im sure bot accounts are like named this I see these Alot TheSillyFox

This script is useless for preventing visit or rating botting. Just because they’re kicked doesn’t mean it won’t count towards player count.

Like @Autterfly and @LexiDog5 said,

Actual new players will be kicked and may not want to come back as they may forget or be angry.

Botters tend to use older accounts that are stolen or created a while ago because it’s almost guaranteed to let them join.

2 Likes

The script wouldn’t work against the botting but, in the other hand, this can also be used as a ban list for al those naughty players.

You should probably Make a bot verification system in-game. Ima make one quick then send it to ya

1 Like

How does it work? Is the bot verification system outside the game?

I made mine to be inside the game and prevents the player from doing anything unless they put in a code sent by you or randomly generated.

I hadn’t actually thought of something like setting up a verification system. Depending on how you do it though it certainly comes with it’s flaws. I am sure players, especially among the younger age group, would find entering some sort of code tedious.

Most bots have a certain weird game favourited, follow one user or have certain badges. The way I prevented bots was to request this API using http service to check if a bot account favourited a certain game and then kicked them if they did. This may have some false positivises but if the favourited game is completely random then it is way more reliable than account age.

1 Like

I made a script for a friend of mine like this, except it checked if the player had at least one of the two hats that Roblox gives you when you complete the email verification in their inventory. Using this method prevents false-positives (players who have created an account and verified) and also encourages those who haven’t to verify their email linked to their Roblox account. On top of that, it eliminates bots because they never verify their accounts.

1 Like

But most people don’t have their account verified/have a email.

As I said, it encourages those who don’t have their account verified to either verify their account or create an email and verify. If they don’t have one, they can verify under their parents.

1 Like