Ok thanks for that tip, the block still doesn’t move 4 studs(The grid size) but it moves not far away.
it says “ocal” i dont know if you somehow didnt fit that part of the code in but that code be it??
Here’s what I got done. The block doesn’t move with the mouse though: