Importing functions from different scripts

Is there any way i can import a function of a script from another one?

What i mean with this is for example i have a function in a script

local function test()
    print("dogs are cute")
end

But instead of using that function on that script, i can use it from another one, as i intend to have a lot of functions and to not make a script very big with both the functions and using them, have a script with the functions and another one to call for them.

Thanks!

Maybe module scripts or bindable events and functions?

Yeah module scripts are more likely the way, i forgot about them completely.

1 Like