local Players = game:GetService("Players")
local PlrsTable = {}
local function OnPlayerAdded(Player)
PlrsTable[Player.Name] = {
["TimeSpent"] = 0,
["InGroup"] = false
}
print(PlrsTable)
end
Players.PlayerAdded:Connect(OnPlayerAdded)
Whenever a new player joins, the table will get populated with the data you showed