Why does this code not do anything? There is no error.
game.Players.PlayerAdded:Connect(function(plr) wait(3) plr.CharacterAdded:Wait() local Char = plr.Character local Hum = Char:WaitForChild("Humanoid") Hum:MoveTo(Vector3.new((workspace.Tel.Position))) print("Moved player.") end)
Thanks in advance.
I don't understand all the new Humanoid Root Part. But I use MoveTo all the time when I move players. (I don't frequently do but when I move them MoveTo works.) It can be very useful, but also can mess up depending on where the part you are moving to is located.
game.Players.PlayerAdded:Connect(function(plr) wait(3) game.Workspace:FindFirstChild(plr.Name) -- up here you had a different method for getting the chracter. That was making you wait forever. local Char = plr.Character local Hum = Char:WaitForChild("Humanoid") Char:MoveTo(game.Workspace.Tel.Position) --- very close. Just don't use vector3.new and you can't use MoveTo on a humanoid. It can only be used on a Model. So use it on the character print("Moved player.") end)
game.Players.PlayerAdded:Connect(function(plr) wait(3) plr.CharacterAdded:Wait() local Char = plr.Character Char:WaitForChild("HumanoidRootPart").Position = workspace.Tel.CFrame print("Moved player.") end)