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

Teleport All Players into center tell me whats wrong?

Asked by 10 years ago

I have tried to get this for ours but cannot succeed please help me this is what im trying

for i,v in pairs (game.Players:GetChildren()) do
    v.Character.HumanoidRootPart.Position = Vector3.new("-17.524, 12.5, 34.909")
    end

2 answers

Log in to vote
0
Answered by 10 years ago

It is resolved i got it by this

for i,v in pairs(game.Players:GetChildren()) do
    v.Character:MoveTo("-17.524, 12.5, 34.909")
Ad
Log in to vote
0
Answered by
Gamenew09 180
10 years ago

You need to remove the quotation marks and in debug's code he needs a vector3.

for i,v in pairs(game.Players:GetChildren()) do
    v.Character:MoveTo(Vector3.new(-17.524, 12.5, 34.909)) -- Add the Vector3.new and remove the quotes
for i,v in pairs (game.Players:GetChildren()) do
    v.Character.HumanoidRootPart.Position = Vector3.new(-17.524, 12.5, 34.909) -- Remove the quotes
end

If this helped please rate up and set this as the answer.

Answer this question