Am I missing something or this is the SHORTEST way?

module.UpdateObjective = function(Objective)
	Events.ObjectiveUpdate:Fire(Objective)
end

As you can see from the image, I am making a module script where if its called, it fires a event that updates the objective.
This script looks simple but I feel like there is much more shorter way of writing this.

To those who are EXPERTS in scripting, do any of you know a shorter way of writing this or that is the shortEST way?
Please let me know so my codes in the future can be shorter and simpler. Thanks.

The shortest way is to not use the module in the first place. Call the event from the main script itself.

Plus, this is such a minuscule problem that won’t affect the quality of your code. Just know that shorter code does not equal better quality code.

2 Likes

ok thanks yeah i feel dumb making this post