Mouse Enter and Mouse Leave in the module?

Hello. The question is, how can I call the MouseLeave and MouseEnter functions through the script module?

if you mean a Module Script, you can either clarify some variables of the frames ecc or whatever…
or you can put in the function of the module a paramater where you could pass the frame / gui ecc…
then just call it.
Tho can you cexplain yourself better?

1 Like

just require the module from another script/localscript

when you do that everything including the mouse enter and mouse leave gets auto connected except functions which you have to manually call

Honestly, I don’t really understand how to explain what I want. I’m writing a module for diseases. For example, the player has a cut and the module will create a frame with an icon. I would like something to happen when you hover over it (specifically the cut icon)

if its a Frame , use the MouseEnter and MouseLeave function