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

Mouse Position ignores parts?

Asked by 5 years ago

I was making a script in which a spawned object follows the mouse. This is in a while loop:

wait(.1)
    mousepointto = mouse.Hit.p
    brick.CanCollide = false
    brick.Anchored = true
    brick.Position = Vector3.new(mousepointto.X,mousepointto.Y+(brick.Size.Z)/2,mousepointto.Z)

For some reason the brick hovers above the ground that the mouse is over and keeping my mouse on the same spot will make the brick go toward the mouse and player camera and up off of the place the mouse is over. How do I have the mouse ignore the brick as an object?

0
depends with your while loop, lmao User#17685 0 — 5y
0
How do you mean? I changed it to a repeat-until mouse clicked loop fa_QURobloxXD 29 — 5y

Answer this question