Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do i make it so all players get teleported to a certain area? [closed]

Asked by 8 years ago

Hi, im currently making a game where Players will need to get teleported at the same time to a certain area after a great amount of time. please help :D

Closed as Not Constructive by Perci1 and M39a9am3R

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 8 years ago

This is not a request site but sense this question is so general and basic ill answer it.

wait(1)
local p = game.Players:GetChildren()
for i = 1, #p do
p[i].Character:MoveTo(Vector3.new(5, 12.8, 6)) --Edit teleport location here
end

Hope this helps, I changed it to moveto, Thanks firebolt

0
Shouldn't you use moveto? fireboltofdeath 635 — 8y
0
Both ways work. pluginfactory 463 — 8y
0
K... I always use MoveTo because when I use torso I always die, but then other people use it and it works. fireboltofdeath 635 — 8y
0
ok i changed it to moveto, and it is safer. pluginfactory 463 — 8y
0
@firebolt, what you're probably doing is changing the position property of the torso when the CFrame property should be changed. Also, MoveTo will stack models on top of one another. M39a9am3R 3210 — 8y
Ad