I have made custom plugin prefab maker, there is a function called onRunning which fires when the module is Initialized (On bindable event).
function Plugin.OnRunning(Connection) return Startup.Event:Connect(Connection) end return Plugin
In the script, i require the module, which works and then i use the function like this:
And here is when it errors.
attempt to call a RBXScriptConnection. I can't seem to find out why, the module is connecting the given function to the event so what is not working?
Basically the module i am requiring has saved it's old version and now i can't change it, every time i require it it returns the old saved version that must be a roblox bug.
Edit: So the problem is that roblox caches required module script source code. I fixed it by doing