IM relatively new to scripting and what I'm trying to do is teleport all players to their own individual brick. I plan on scripting a cutscene that shows all the players before the game begins. I don't have a script to show because I don't even know where to begin! Please help point me in the direction of where to begin!
For future reference, try to atleast put a little bit of effort, but since you don't know where to begin I can help start you off.
I don't know when you plan on teleporting the players, so I'll just show you a function for it.
function TeleportTeamPlayers(teamspawn,teamcolor) for i,player in pairs(game:GetService("Players"):GetPlayers())do if player.TeamColor = teamcolor then player.LowerTorso.CFrame = teamspawn.CFrame end end end
This function loops through all the players in the game, then if they are on a certain team, they are teleported to that teams spawn. To use this, all you have to do is call the function by doing TeleportTeamPlayers(teamspawn,teamcolor)
but replacing teamspawn with a brick that you want the specific color to spawn on, and teamcolor with the color of the team you want to teleport.