Basically, set it to true when the wheel starts spinning, and don’t let it spin again until it’s done and you’ve set it back to false. That way, it won’t keep going when it’s not supposed to.
To stop it after a set number of spins, I just used a counter. Every time the wheel spins, I’d subtract one from the counter. When it hits zero, just block any more spins by keeping isSpinning locked at true or disabling the input altogether.
If you want it to spin on its own without clicking or pressing a button, adding a timer works great. Set up a Timer node to trigger the spin function after a certain time—it’s super simple and does the trick.
Also, if you’re into these kinds of games, I’d say take a look at Slot77. It’s got some fun ideas that might give you a bit of inspiration for your roulette.