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

How do you make an team when in-game?

I'de like to know, if you are in-game.. how you can create an new team.

Please say how I can do this. D:

1 answer

✓ Accepted answer

With magic.

function checkForService()
	teams = game:FindFirstChild('Teams')
	if teams then
		return true
	else
		return false
	end
end
function createTeam(parent)
			local teamA = Instance.new('Team')
		teamA.Parent = parent
		teamA.Name ='' -- Name of the team
		teamA.TeamColor =BrickColor.new(255,255,255) --Color of the team in BrickColor
		-- make other properties if you want.
end

function makeAnewTeam()
print 'Abracadabra insert a new team' -- dont delete this
	if checkForService() == true then
createTeam(game.Workspace.Teams) 
	else
print 'Abracadabra insert a new team' -- dont delete this
		local findit = game:GetService('Teams')
		createTeam(findit)
	end
end

2 comments

0

y complicate things

0

MAGIC!

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