Modules or bindable events (accidently posted in development discussion)

hello people coders

got a quick question here, so basically im making another “walkspeed handler” used for managing slows, stuns, speed increases etc so my current method is:

character.BindableEvent:Fire("EditSpeed", tableWithInfo)

then the reciever…

character.BindableEvent.Event:Connect(function(a,b)
     if a == "EditSpeed" then
          --calculations bla bla
          humanoid.WalkSpeed = speed
     end
end

question is are there any performance-related pros to using modules instead of bindable events for setting the humanoid walkspeed?

2 Likes