Have you checked out the moneypot API? Or the new betbase.io? The betbase are launching their ICO in a few days and they seem to be very reliable service. I don't think anyone will give you a script for free that first in your liking. Anyways, I hope u find it.
As said it would not be with btc. Still there are dice sites out there with source code.