I’ve always made that using a teleport part that appears in the workspace to teleport all players but that’s not efficient, does anyone have an idea how i can teleport all players in the game to a location?
local Players = game:GetService("Players")
local DestinationCFrame = --ur destination.
for i,v in pairs ( Players:GetChildren() ) do
v.Character:SetPrimaryPartCFrame(DestinationCFrame)
end
2 Likes
for i,v in pairs(game.Players:GetChildren()) do
if v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
v.Character.HumanoidRootPart.CFrame = workspace.TPPart.CFrame
end
end
darn someone beat me to it
1 Like