Rpg npc

now everyone here has probably heard it a thousand times but i have a problem with npcs, i have tried coding them myself and failed, i then tried some tutorials but i have been using a backgorund that maves as aposed to a character so they dont help. so basicly could anybody code form me or point me in the direction of a tutorial that cna show me how to code a npc that can have its poision moved around and still work. thank you :slight_smile: