Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Kick player under 30 days since sign up?

2 answers

✓ Accepted answer

put this in a server script:

local MIN_ACCOUNT_AGE = 30;
game.Players.PlayerAdded:Connect(function(player)
	if(player.AccountAge < MIN_ACCOUNT_AGE) then
		player:Kick()
	end
end)

2 comments

0

Server script = serverscriptservice?

0

a server script is a script that runs on the server.. a LocalScript runs on the players computer

Put this in a Local Script:

if game.Players.LocalPlayer.AccountAge < 30 then
	game.Players.LocalPlayer:Kick('Accout too young!')
end

3 comments

0

won't work in local script

0

you have to put it in starter gui

0

Can work in local script but it's better to do it on server

This discussion is preserved as it was. New answers, comments, and votes are closed.