This is just the world I used in my "NPC Function" video. Attached to it is the function. The world doesn't have much, just some basic examples of what the function does. You can mess around in the world or move the function to one of your own worlds.
A link to the video: