Okay, so I’m trying to understand how I can have a script listen for a function that a module fires.
Example:
Inside the module script:
Okay, so I’m trying to understand how I can have a script listen for a function that a module fires.
Example:
Inside the module script:
You could use a bindable event.
I’m trying to use a module, not bindable functions.
I know but you can do
function module.new()
return setmetatable({
fun = Instance.new("BindableEvent")
miscvalue = false
}, module)
end
function module:DoFunction()
self.fun:Fire()
end
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.