Kicking new accounts from game

can some help me as soon as possible

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

Did you tried put it inside StarterPlayerScript?

The event is called “PlayerAdded” but there was a tpyo where you wrote “PlayersAdded”

2 Likes
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.

1 Like