Updated RDNTd.lua

This version should work better!