Marshmallow Golf

I need help making a course mechanic like in kirby’s dream course, can anyone help?