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:
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:
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
y complicate things
MAGIC!