The code:
function onObjectSearchEnd(object, color)
object.shuffle()
end
Does not work for any players EXCEPT for the host. The script will work if the host searches something and will shuffle afterward, but if any othe player does a search it will just do the animation, and sound, but the cards will stay in the exact same order.
Try this:
function onObjectSearchEnd(object, color)
Wait.frames(function() object.shuffle() end, 1)
end
Increase the 1 if you need to.