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

Not much of a scripter, but I'd like to add my new account's to this age script or the group?.

if Player.AccountAge < 3 and not game:GetService("RunService"):IsStudio() then Player:Kick() return end	
Load(Player)
Player:LoadCharacter()

end)

How would I make a bypass for sub-accounts under that age? Also if you can make it to the group ID that'd be even better! Thank you.

1 answer

Here, just use this inside of the workspace:

exceptions = {
	"Player",
	"Other Player"
}
age = 3
game.Players.PlayerAdded:connect(function(plr)
	if plr.AccountAge < age.Value then
		for i = 1, #exceptions do
			if plr.Name == exceptions[i] then
				print(plr.Name)
			else
				plr:Kick()
			end
		end
	end
end)

If this doesn't work, please comment. If it does, please upvote and accept answer.

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