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