Could anyone help with this gui issue?

Im trying to make a script whereas a gui frame appears and moves with the mouse while its hovering over another gui, but im having issues with it dissapearing when its not hovering over the gui, and it seems to be way off the mouse

This is a video of the issue
robloxapp-20240714-1352084.wmv (1.9 MB)

And this is the local script being used

I want the frame that appears when hovered over the other frame to be closer to the mouse, and for it being visible to be false when i stop hovering over the gui, how can i do this?

You can simply add this outside the MouseMoved function:

v.MouseLeave:Connect(function()
	StatFrame.Visible = false
end)

I experimented a bit and found that the Offset part of the Script would work if StatFrame is parented directly under the ScreenGUI, like this:
image

(Doesn’t matter where the LocalScript is parented, so long as you update the paths to your StatFrame).

Probably because the Frame is affected by its parent’s AbsolutePosition, so the offset isn’t accurate.

This helped with my issue, thank you for giving me the solution :+1: :+1:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.