---[The idea]---
Find how long a player has been in a certain group.
(Calculate in days like the normal ROBLOX player age does?)
---[Example]---
local Age = game.Players.LocalPlayer:GroupAge(groupID)
if Age<10 then
print(game.Players.LocalPlayer.Name .. " has been in this group less than 10 days!")
end
---[The reasoning]---
Suppose you are a talented scripter who enjoys building forts/bases/HQ/etc for a group you are in (or any other type of group in general; I feel this applies greatly here). A problem among fighting clans are prone to other groups mass recruiting people against yours only a few days before-hand, then invade the group's main base and sometimes overpopulating it to where you can't fight back. This function should be able to allow anyone who enters the game to prevent staying if they have not been in the group long and prevent this issue. Such as using the kick event in scripting if the player hasn't been in the group for a certain amount of time.
Some might argue that you could just have their rank checked in the group, but doesn't rule out the possibility of the owner of the opposing group just changing them to a higher rank if he/she knows about it.
Once a player leaves said group, that data should be erased or set back to 0. |