https://youtu.be/MAjobdDNqKY here's the original tutorial i was too lazy to watch so i copied the code from @warfame_test. Credits to him for the original code for platform physics, but i made the rest after seeing this part of this video: https://youtu.be/kEB11PQ9Eo8?t=270