So I'm using MouseButton1Down to detect a click of the scripts parent (being a textbox). When this happens, I want it to run a function from a module I've linked. However, when the module is linked, it doesn't work. What should I do?
Thanks!
Code:
local module= require(game.ServerScriptService.Modules.module1) script.Parent.MouseButton1Down:connect(function() module.function end)