How to get the exact mouse position and apply it to a gui instance?

This question is simple, how to get the exact mouse position and apply it to a gui.

Someone already asked a similar question on how to get the mouse position. How do i get the player's mouse position

I meant on a udim2 type of way and not in a vector3 way

This should help you out:

UserInputService:GetMouseLocation gives you the vector2, and feed the x and y into udim2.Offset