How to make it so if a player joins the game. And player:isingroup(GroupId) it adds his username to the a specific table?
COMMUNITY QUESTION
How to add username to table if is in group?
1 answer
You basically said it.
local NameTable = {}
game.Players.PlayerAdded:Connect(function()
if player:IsInGroup(groupId) then
table.insert(NameTable,player.Name)
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
