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:
Plugin.OnRunning(function()
end)
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?
Thanks, kirda

5 comments
Usually it says "attempt to call a RBXScriptConnection" when you do "Event(function..." instead of "Event:Connect(function..."
Right, this is why i am confused why is it not working.
Try Plugin.OnRunning:Connect. What does it say?
Rly confusing
The problem is with module replication it's a bug or what, the module with function is not updating it's a roblox bug