First, you are going to should insert a Team object in the teams company in the explorer. If that doesn"t show up there, click on "model" > "Services" > "Teams" and click the button "Insert":

Then Insert a Team object in the groups service and customize it together you want.

You are watching: How to make teams in roblox


After that produce a part in the workspace and also place a script and also a click detector in it.


And then, ar this script in it and make alters to to the right your video game specifically:

local TeamsService = game:GetService("Teams")-- Wirte her team"s surname in the wait because that childlocal Team = TeamsService:WaitForChild("Noobs")local ClickDetector = script.Parent:WaitForChild("ClickDetector")local role AssignTeam(Player) Player.Team = TeamendClickDetector.MouseClick:Connect(AssignTeam) Also, click detector works for mobile together well.

answer Apr 19 in ~ 10:48

Arthur Buzas BaccanArthur Buzas Baccan
9811 silver badge66 bronze badges
add a comment |
Read this:

Implement a MouseClick event listener for the part. Then usage the playerWhoClicked parameter to determin i m sorry player clicked. In the listener entrust a Team circumstances to the players Team property.


answered Apr 19 in ~ 6:21

21.1k22 yellow badges1717 silver badges3333 bronze badges
add a comment |

your Answer

Thanks because that contributing response to ridge Overflow!

Please be sure to answer the question. Provide details and also share her research!

But avoid

Asking because that help, clarification, or responding to other answers.Making statements based on opinion; earlier them increase with recommendations or an individual experience.

To learn more, watch our advice on writing great answers.

See more: 'L I Live Above A Star Riddle, I Live Above A Star Riddle

Draft saved
Draft discarded

Sign up or log in

authorize up using Google
authorize up utilizing Facebook
authorize up using Email and Password

Post as a guest

email Required, yet never shown

Post together a guest


Required, yet never shown

article Your price Discard

By clicking “Post her Answer”, you agree to our terms of service, privacy policy and also cookie plan

Not the price you're looking for? Browse various other questions tagged lua roblox or questioning your own question.

The Overflow Blog
Featured on Meta
ROBLOX - Why is this fly manuscript working only in the Studio?
C-Frame sliding Door in Roblox Studio manuscript
exactly how to do a part that changes your team in Roblox Studio
Roblox just how to detect a player's team
Roblox studio just how to detect key inputs?
Roblox animation not playing when I click
how to location captain to the first player to join a team roblox studio
exactly how to deal with Players.louie43pro.PlayerGui.admin.Frame.LocalScript:10: intended identifier when parsing expression, acquired ')' error roblox studio?
warm Network inquiries more hot concerns

question feed
subscribe to RSS
question feed To subscribe to this RSS feed, copy and also paste this URL right into your RSS reader.


ridge Overflow
ridge Exchange Network
site design / logo design © 2021 stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.11.11.40719

Stack Overflow works finest with JavaScript allowed

your privacy

By clicking “Accept all cookies”, girlfriend agree stack Exchange can store cookies on your maker and disclose details in accordance through our Cookie Policy.