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

Can someone help me on a script for checking if a player isnt in a group and teaming them thus?

I just need a quick script that is something like this is player in group (groupid) if yes place on (team) if no place on (team)

If possible for the groupid's that it looks for on the players group list to be multiple groupid's?

1 answer

game.Players.PlayerAdded:Connect(function(plr)
	if plr:IsInGroup(000000) then --Change "000000" to your group id
		plr.TeamColor = game.Teams["Team"].TeamColor --Change "Team" to your team name
	end
end)

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