So I have a Lobby and Playing team and i would like the players in the Lobby team to teleport to the map and also set their team to the Playing team and vice versa when the game ends, but it doesn't seem to work and the output doesn't have any errors.
local playersinlobby = lobbyteam:GetPlayers() for i, v in pairs(playersinlobby) do local Character = v.Character local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart") if Character then HumanoidRootPart.CFrame = ClonedMap.TeleportPoint.CFrame wait(2) v.Team = playingteam end end
I would like to know the reason why.
Also try doing
Try using this
Character:MoveTo(Vector3.new(0,0,0)) -- change the pos to ur teleport points location