So i’ve been working on a “Mario Party” like game on roblox. If you never heard of that its basically like playing a giant board game where you go around the board collecting stars.
Ive got most of the scripting done for each players turn with rolling and the space effects. but i ran into a problem…
Since players are allowed to leave any game whenever they please, I’m just wondering how do i have my code not freak out when all of a sudden player 2 leaves in the middle of there turn. and since this is mario party, there are many different things that could be happening during their turn. for example:
- during their roll,
- moving the given amount of spaces after they roll,
- the effect that happens when they land on a space.
- and much more!
I’m just wondering if there is a way to skip all of that if a player leaves
and move on to the next players turn without having to put a “check if the player is still here” function after each step of a players turn.
Maybe there is some fancy Class I’m unaware of that makes this super simple?
Thanks!