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

How do I make a part appear at the mouse's position more accurately?

Asked by
iXBruv 24
5 years ago

I've been having an issue with setting a part's position to the mouse, I've been able to have it make a part and have the part set it's position to such

Vector3.new(mouse.Hit.p.X, 2, mouse.Hit.p.Z)

However, when I do this there is an offset on the part's position where the part may appear a little further to the right of the mouse. How can I make it more accurate, avoiding the offset?

Answer this question