This script is for Pokémon Essentials. It's the Roulette Game Corner minigame from Ruby/Sapphire/Emerald. This minigame isn't an exact adaptation of the official one, the ball never stops at an occupied slot, so there's no Taillow and Shroomish bonus.
Follow the Script instructions. The sample script files are in Files folder.