刚刚 is closer to now than 刚才。
我刚刚回来。(it's like just a minute ago or even less than a mimute ago I arrived home)
刚才他说什么? (刚才is a vague concept of time that is not long after something you're talking about with 刚才。 刚才 suggests a short time ago. But as in English, nobody could tell you, a short time is exactly for how long. )
I hope this can help.