...whenever I attempt to alter a type field's values inside a Function (a pre-existing type that already has an instance made outside of this function), it always returns the error message "Variable must be a type"
It sounds to me as if your type instance is not declared as a Global variable. If you don't want it to be global, another solution would be to pass the type instance into the function as a parameter.