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
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
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")
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.