wait(5) print("ready") wait(1) local TeleportPosition = Vector3.new(107.5, 9, -5) for i, v in pairs(game.Players:GetPlayers()) do Humanoids = v.Character:GetChildren() for i, v in pairs(Humanoids) do if v.ClassName == "MeshPart" or v.ClassName == "Pants" or v.ClassName == "Shirt" or v.ClassName == "Part" then v.Position = TeleportPosition end end end
So this teleports every player in the server to a specific location. Why does it kill them? https://youtu.be/rZSavbAGVuU Video Above For Example
That's because what you actually do is iterate thru every part inside a character and put all of them in one location and also compressing them. If you move the head or a torso out of a character, it breaks the welds of the whole character, causing one to die.
What you can do instead is teleport just the HumanoidRootPart
of each character so that none of the joints would break.
wait(5) print("ready") wait(1) local TeleportPosition = CFrame.new(107.5, 9, -5) for i, v in pairs(game.Players:GetPlayers()) do Humanoids = v.Character Humanoids.HumanoidRootPart.CFrame = TeleportPosition end