How do I filter what state should trigger a .Changed with sletinics GoodSignal

I’m having an issue with Sleitnick’s goodsignal modulescript. I am using it in my statemanage module and there I have this function:

function manage.GetStateChangedSignal(Character: Model, State: string)
	local PlayerData = manage.PlayerData[Character]
	if not PlayerData then return end
	
end

Same as :GetAttributeChangedSignal(attribute: string):Connect(function())

I want this to get fired only if the state in the function parameters matches the signal’s state changed.

Are you able to provide a link to the module you found? I have been unable to find one by Sleitnick that matches the code sample you provided.

Also, it’s probably just as efficient to add an if statement at the top of the function that is just if state ~= "STATE" then return end