This function here is supposed to invoke a remote function, but it gives the error as seen in the title. I don't have any idea why, so I'm just going to write down the server and client scripts.
-- local script
local bodytype = nil
function checkbodytype()
bodytype = checkbodytype:InvokeServer(tool)
end
-- server script
repstorage.RemotesUMP.CheckBodyType.OnServerInvoke = checkbodytype

1 comment
You can't call the function "checkbodytype" inside the function "checkbodytype"