Question about OOP

Okay, so I’m trying to understand how I can have a script listen for a function that a module fires.

Example:

image

Inside the module script:
image

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
2 Likes

Maybe try using FastSignal.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.