Hello lately my game has been dislike botted by account that weren’t a week old and I want to prevent this by using a script to kick the account if it isn’t a week old but this part of scripting that I did is the hardest yet
COMMUNITY QUESTION
Kick new accounts. game got dislike botted how to prevent?
2 answers
You can't do much to prevent dislike botting sadly. You can email ROBLOX: info@roblox.com, or create a new place, but that's the most you can do.
This is how you'd kick an account that is less than a week old though:
game.Players.PlayerAdded:Connect(function(player)
if player.AccountAge < 7 then
player:Kick("Sorry, you must be on ROBLOX for a week to play this game.")
end
end)
Put this in workspace:
game.Players.PlayerAdded:Connect(function(p)
if p.AccountAge <= 7 then
p:Kick()
end
end)
I think this will kick the player's account if they're too young.
Happy to help, b_mni.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
https://developer.roblox.com/en-us/api-reference/property/Player/AccountAge