"Attempt to call a nil value" at a module function

I think the problem is pretty clear..
All variables that are going inside the function are not nil and I tested that. It somehow does not like module.Errormessage()

--INSIDE LOCAL SCRIPT:
function ErrorChecking(errWord, module)
	print(errFrame.Name)
	module.Errormessage(errFrame, errWord)
end

--(this here is also inside another function unrelevated to the topic)
        ErrorChecking(errWord, module)
		return



--MODULE SCRIPT:
function settings.Errormessage(errorFrame, errWord)
	print("sth") --Does not print
end

Players.Faustollol.PlayerGui.CarSpawner.LocalMain:16: attempt to call a nil value - Client - LocalMain:16

Thanks to ChatGPT I found out, that functions do not transfer over RemoteEvents, but tables and the rest did. Got it fixed

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.