With some basic Math and the use of clones, I made a sine wave! Feel free to copy the code and place it on your games or customize my sine wave with the sliders provided.
From @DeveloperREDD on Youtube I was able to watch a simple tutorial of him and made the sine wave with some parts I customized!