i have an issue with exploiters in my game and i really need to fix it as soon as possible
i want a script that kicks new accounts, i have one I think but i have no idea where to put it in studio so it actually works
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
if player.AccountAge <= 14 then
player:Kick("Your account is not old enough!")
end
end)
This works, you can test by increasing “14” to a number which exceeds the number of days your account has been registered for.
ServerScriptService is the correct location for it.