I am trying to make someone receive a team once they spawn in a lobby of a game and once they enter a portal. Is there any way I can change someone's team when they touch a specific part without killing the player?
part.Touched:Connect(function(hit) local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) player.Team = game.Teams.TEAMNAMEGOESHERE end end)
You could make the portal a spawn point and go into properties and make it so player doesn't spawn there but it changes there team on touch. For example place a tp brick and the spawn point make sure there in each other so when the player spawns they tp.
Locked by PrismaticFruits, Dovydas1118, raid6n, and IAmNotTheReal_MePipe
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?