Quick tip... You can create what I call chunk animations. Basically if you have a large animation you split it into smaller ones inside the same animation tab, then after an animation has finished playing you have it play the next animation chunk & so on & so on.
Ok the code thing you wrote above...
If getObject("Scenes[dance].SceneValues[badgame]"):getInt(VValueInt) >= 5 then
startAction("Scenes[dance].SceneActions[game]")
end
...based on what you wrote.
You know it would probably be simpler to create a called by other action with the above done in action parts & have it call the action on each frame of the animation.
P.S: I do think you might be getting in a little over your head with this mini-game. Would be far more productive for you to keep learning all the basics of the engine first & then come back to the more complicated stuff later on, once you have a decent grip on how everything works.