I know that Bindable events run 40~50 times per sec.
Why do people use bindable events?
If they want functions used many times on other scripts, they can use a module script that doesn’t waste performance per frame.
What’s the difference of the bindable event and the module script?
wdym what’s the difference…
Bindable events are events, modules scripts are scripts
most of times I use them for example, exchange of making a code look ugly like this;
require(script.Parent.Parent.Parent.varjoy.PlayerGui.ClientScripts.Notifications).sendNotification()
I prefer doing this
replicatedStorage.Events.Notify:Fire("Text",2)
And do this on a script;
local m = require(script.Notifications)
replicatedStorage.Events.Notify.Event:Connect(function(text,time)
m.sendNotification(text,time)
end)
The title asks why people use ModuleScripts, and suggests that people should use BindableEvents.
Your question asks why people use BindableEvents, and suggests that people should use ModuleScripts. Can you please clarify?
1 Like
I fixed the title. I asked why people use BindableEvents
1 Like
They’re for different purposes. Modules are for storing values and functions, and Bindables are for telling another script to do something. You shouldn’t store functions solely as a hacky method to communicate with another script.
3 Likes