The following function prints Hello
rather than the warn when I pass it with a string, any reason why?
function remote:registerCallback(callbackFunction)
print(type(callbackFunction))
if not type(callbackFunction) == "function" then
warn("[REMOTE MANAGER] Given callbackFunction is not a function")
return
else
print("Hello")
end
print(type(callbackFunction))
if not table.find(self.callbacks, callbackFunction) then
table.insert(self.callbacks, #self.callbacks + 1, callbackFunction)
end
end