Making a temporary booster

Hey, just wanna ask, is it wise to use Heartbeat when creating something like a Temporary Boost or anything that adds to something?

I got this module i call value bind and got a Heartbeat to handle all the stored value and then it add the total of the stored value to the targetted property/value, for example theres a value bind for a Player WalkSpeed, and then i just need to do value_bind:add(1), and it will store 1 to the walkspeed value bind, and in the Heartbeat it will get the total of the value/numbers that has been added to the walkspeed value bind and set the Player’s Walkspeed to the total of the value bind values, which is 16 + 1 so its 17. It also got a duration so it can handle both permanent boost and temporary boost.

or its more better to use a task.delay or any other way? pls help me :frowning:

1 Like

If you want your boost to be stackable (like +5 speed for 10 seconds and +2 speed for 3 seconds), yout current system is fine and probably the best for it.

But if your boosts are simple and only one time boosts (and don’t overlap and stack), such as say, +5 speed for 10 seconds fixed. Then task.delay is the one to use.