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

How to add username to table if is in group?

How to make it so if a player joins the game. And player:isingroup(GroupId) it adds his username to the a specific table?

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.