Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I teleport ALL players to a part?

I don't have any tests yet but I know you can use Vector3.New or something. can someone help??

2 answers

✓ Accepted answer
for _, player in pairs(game.Players:GetPlayers()) do
	player.Character.HumanoidRootPart.CFrame = part.CFrame -- make part the part you want them to teleport to
end

note, if this runs as soon as the game starts, the player/character may have not loaded in yet and it wont work. (if you want to test it, just add a wait(2) at the top of the code)

2 comments

1

Please add explanations to your answer. This doesn't help them learn how or why this works.

0

ummm no need he helped me

This discussion is preserved as it was. New answers, comments, and votes are closed.