What is the best way to activate a function in another script, using a module script or a using bindable event?

That is, by the name of the post, i meant something like this:

Which option would be better, or are they the same and there is no difference?

  1. Using a module script and activate the function using require(ModuleScriptName):FunctionName()
  2. Call :Fire() in the script and another script that has connections to the bindable event will run the function

(Yes, a very short question, but i just would like to know which option would be better)

3 Likes

Personally I’d say number 1 as it has a lot less faff.

1 Like

I was never thinking on this :slight_smile:
I prefer modulescripts, that is mostly enough.

I think bindable event is fine when you need to run a function in a special script where you have all local variables / objects already defined.

1 Like