So what I’m trying to do is make a basketball shot like in hoops demo.
The problem is I am very new to scripting and I have no idea how to do it. I already have a shot meter and a shot animation ready, I just need a way to make the ball move to the net.
It’s quite simple actually. First, you need to raycast the player’s mouse into the world space (sounds hard, but many tutorials can be found online). Then, you set the basketball’s velocity towards the position of where the ray intersects the part.