I tried to write Arabic in plain Luatex but all letters in isolted mode
\input luaotfload.sty
\font\amiri={file:amiri-regular.ttf:mode=harf;script=arabic} at 12pt
\pagedir TRT \bodydir TRT \textdir TRT \pardir TRT
\amiri
بسم الله الرحمن الرحيم
\bye