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

How do I make an age limit for a game? Where do I put the script?

game.Players.PlayerAdded:Connect(function(plr)
	if plr.AccountAge == -2000 then
		plr:Kick()
	end
end)

2 comments

0

put it somewhere random

0

uh... regular script i guess..?

1 answer

✓ Accepted answer

the following code says: if the player is over 2000 days old, kick them put it in a normal script in the workspace

game.Players.PlayerAdded:Connect(function(plr)
    if plr.AccountAge >= 2000 then
        plr:Kick()
    end
end)

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