local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Move:Connect(function()
script.Parent.Frame.Position = UDim2.new(mouse.X/1000,0,mouse.Y/1000,0)
print(mouse.X/1000)
end)
If you paste this into a localscript, the frame will have an offset from the mouse. How do I fix it so that the frame is where the mouse is, with no offset?

1 comment
Make sure you have no GUI scaling component! This messes up the position very weirdly.