How would I go about making a hold note in a rhythm game?

I’ve been working on an osu! Mania style rhythm game, similar to RoBeats and everything works quite well, except I’m missing the hold notes aspect, and that usually adds plenty of skill to the game. How would I go about making something like that?

Check whether

UserInputService:IsKeyDown(Enum.KeyCode["Your key here"])

And loop; It’ll provide a boolean which can be used with a loop (Which would break when the key isn’t down or when the note is over) or depending on your initial structure, can allow for state changing/score granting.

2 Likes