How do i make a magnitude script so it gets humanoids in a folder the same value?

Hi im making a firerate and range boost for my tower defense game, and somehow i can’t find the solution, how do i make it so, when it gets in boost than the towers firerate gets divided by 1.5, and after the boost cooldown it returns to 1, how do i make this script in a specified folder? (in magnitude to humanoids)

Your question is really unclear, but I’ll still try to help. The basic math is simple:

--boost
firerate /= 1.5
-- reset
firerate *= 1.5

There isn’t really anything more to it than that, are you asking how to organize your code? Or how to get all of the humanoids in one folder?

not really i want so it gives all the towers a boost.

you need to give more information. You’re not giving enough information. We need scripts, images, and errors to be able to help you. No one knows how your game looks.