This script works really well now, I have my main music as Sound0 and just changed the script to play sound 1, work amazingly well. Great for assigning to dynamic objects.
Here's a tip, not sure if you realise, for sound effects used for ambience, such as humming machines, save your audio file as a MONO WAV.
This will ensure that the sound location will pan around when the player rotates and move around the object.
This only works with MONO WAVS, mono Oggs don't pan they just stay centre of stereo image. Stereo Wavs or Oggs don't pan either.
Great script Devcore.
https://www.dropbox.com/s/zrgugqth077bc7d/soundbinua.lua%20-%20Realism%20Test.avi?dl=0Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, AMD HD7870 gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit.