local player = game:GetService("Players").LocalPlayer mouse = player:GetMouse() mouse.Button2Down:connect(function() player.Character:MoveTo(Vector3.new(mouse.Hit.p)) end)
It takes me to where I spawn, and it only teleports there and infront a little. I have no idea why, no errors, Local Script in backpack (Starterpack)
You're basically doing
Vector3.new( Vector3.new() )
which is obviously flawed. mouse.Hit.p
is already a Vector3, so just use it;
player.Character:MoveTo(mouse.Hit.p)
Just remember that when Roblox transfers a 2D mouse into 3D space, the result is often not what you want, so something extra or different may have to be done.