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?

5 comments

0

Like a spawn?

0

Way to broad, is it a spawn? hit to touched for a located what?

0

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)

0

You set the character humanoidroopart cframe in the case

0

Being a beginner isn't an excuse to not do your homework and to not learn information for an attempt