How would I calculate BPM correctly?

Hi, I’m trying to make a rhythm esque game, but it seems I can’t figure out how to calculate BPM correctly, it is delayed.

The BPM is 200, I made the fov zoom in to visualize the beats. If you look closely, you can see its fine for a split second, but them the beats become very noticeably delayed. My current calculation is this:

wait(60/bpm)

how would I fix this? Thanks.

P.S. yes i have read other articles about this but none seemed to help.!
Saved as C__Users_Peter_Documents_ROBLOX_Places_BPM test.rbxl - Roblox Studio 2021-10-05 17-59-00|video

This would wait about 3 and a half seconds between each beat. The way I did it was the correct way, but roblox still seems to have not done much about the tiny delay in every wait() function

The correct way to get the wait time between beats from bpm is to flip-flop the bpm and the 60, making it

wait(60/bpm)

For example, if you have a BPM of 120, the beat should play 120 times a minute, or once every 0.5 seconds (60/120).

1 Like