I am following this to make a bindable event, the issue is on the other script (not the module) where you require the function so that you may reference its event, when you require it, it calls the function. What if I do not want it to call the function when I require it?
I tried instead of doing local mouse = require(mousemodule).new(), i tried putting the .new() inside the require, but that worked the same way.
What is the script that’s erroring? What is line 27?
You definitely require the module instance itself and then call the function. I can’t really figure out what the module itself is doing and I definitely don’t know what “StartRace” is.
Teleport is a function in the module, RaceStarted is a event in the function that I am trying to connect to. The problem is i do not know how to require the function without calling it.
You don’t require the function, you require the module and run the function from that. I’m not sure about how to solve this issue, but maybe have the function in the module return the actual event it creates to use that?