A script form the wiki shows how to get the position of your aim like this
script.Parent.Equipped:connect(function(mouse) --have this LocalScript inside a HopperBin
for i = 1, 10, 1 do --print the mouse's location 10 times
wait(1)
print(mouse.X, mouse.Y)
end
end)
I'm trying to get it to only print the location with a changed event instead of with a for loop, just couldn't get it to work... |