This script will spawn a voxel object and/or template when a player either interacts with it or gets close enough to it. The Halloween Fun Example includes a skeleton spawner in one of the three crypts. Interact with the bone on the ground to see it in action.
The object(s) can reset after a period of time and a sound can be played when they spawn.
Note: “Allow Player Parenting” should not be used if the player can walk onto the object and the object can reset. If this happens the player will also be deleted! This setting is there for things like moving platforms where you want to carry the player with the platform as it moves. Use carefully!
Check out the image below to see the options available.