You can write your topic however you want, but you need to answer these questions:
What do you want to achieve?
I want this function as a variable work like it does with other function
What is the issue?
The function require Humanoid to be called again when the current humanoid called the function
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Adding the humanoid variable to the function
local Humanoid = route.to.humanoid
local GetEnabled = Humanoid.GetStateEnabled
print(GetEnabled(Enum.HumanoidStateType.Running)) -- print out Expected ':' not '.' calling member function GetStateEnabled
print(GetEnabled(Humanoid,Enum.HumanoidStateType.Running)) -- print true
All Humanoid objects share the same function. This is a good thing because it means you don’t need to have duplicate code taking up RAM everywhere.
local humanoid_1 = route.to.humanoid
local humanoid_2 = route.to.other.humanoid
print(humanoid_1.GetStateEnabled == humanoid_2.GetStateEnabled)
--> true (meaning they are literally the same function at the same location in memory)
So you’re not getting route.to.humanoid's function, you’re getting Humanoid class’s function. Because of that, you still need to specify which humanoid you’re working with.