From memory, Baldi's Basics is made in Unity. There is no way to directly port a Unity game to work on the N64.
It would have to be re-written from scratch for the console. A lot of effort but probably possible, don't know enough about the game to say for sure.