For my new game, Cops and Robbers: Prison Attack, I need to make a function that makes all players in a team teleport to a Part. This is not yet in my coding reach as I am still a beginner, so how do I do this?
COMMUNITY QUESTION
How do I make all players in a Team Teleport to a certain part?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Like a spawn?
Way to broad, is it a spawn? hit to touched for a located what?
Use players:getchildren(). With the table created from it you filter by the team and sets their cframe to the same of the part you want to teleport*CFrame.new(0,part.Size.Y/2+5,0)
You set the character humanoidroopart cframe in the case
Being a beginner isn't an excuse to not do your homework and to not learn information for an attempt