Delay with Mouse Tracking when using RunService

I’m attempting to create a mouse-hover interface system with a frame locking to the players mouses current position.

As of recently (usually out of studio and in game) there is a significant desync from the position of the mouse and the position of the interframe.

Here is the code looping to update the position of the frame along with the function setting the position


I’ve gone from using a while loop, to using RunService, looking for guidance on what I should do next.

Here is the link to the game if anyone was interested for seeing this for themselves:

just tested it out, and i don’t see any issues with it. I do notice a bit of wobbling when i move the cursor around, but it actually makes it feel more natural.