The bug is the point where I dash is not the one I clicked on.
So the concept here is where I have a player that can fly towards an object. But the function I have is only going towards a specific point. Here how it looks like.
If I’m not mistaken, your code in line 29 does not specifically state in the condition which hook you’re referring to. If there will be no conflicts, maybe you can try putting it as a subevent of line 28
I’m really sorry but I’m having a hard time to analyze. The possible causes I think are:
The size of the hooks are actually big, with the majority of the area being transparent. However, this may not be the case if you can press the click detectors but cannot press the hooks
There is something in your code which detects mouse press in those areas
There is something in your code which duplicates the hook boxes but appears invisible (bug but maybe this is not possible)
Check the instances window. You might have created instances of the hook but the scene editor does not show them. In this case, delete them from the instances window.
Thanks for the suggestions but I have found the bug in the script. For unknown reasons the camera script for the player I have made the hook point area of clickable is at the bottom area of the hook point.