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

mouse.TargetFilter not working?

Asked by 8 years ago

I've created a wall and added it to the mouse.targetFilter, but the mouse is not ignoring the wall.

tool.Equipped:connect(function(eventMouse)

    eventMouse.Move:connect(function()

        eventMouse.TargetFilter = game.Workspace.Wall

        if (playerMouse.Hit ~= lastHit) then
            lastHit = playerMouse.Hit
            lastTarget = playerMouse.Target
            print(lastHit)
            print(lastHit)
        end
    end)
end)

1 answer

Log in to vote
0
Answered by 8 years ago

Still need help with this.

Ad

Answer this question