im trying to position in front of a part with 5 studs away from it. I try doing vector3.new(5) to distance it. however if i did vector3.new (0,0,5) it would move but only on the z axis. if the part was randomly rotated over the map, how can i achieve this position in front of the part at 5 studs away?
game.Players.LocalPlayer.Character.HumanoidRootPart.Position = workspace.Part.Position + (workspace.Part.CFrame.LookVector * Vector3.new(5))

1 comment
well thank you