Basketball Passing

I honestly don’t even know where to start. I’ve got the passing down as far as actually throwing the ball, but I need the other player to look at the ball and move torwards the target position. Can anybody help me?

2 Likes

What do you mean by this, please post more information what you need help and auto correct me is this an script or just off topic?

1 Like

Ok I’m very sorry, this does involve scripting. I have one player who has a basketball, and he pressed a number to pass the ball to a certain teammate. While the pass is in the air, the pass receiver should move torward the passes target location and looks at the ball. If you need any more information don’t hesitate to ask.

So basically it’s an script that pass a ball or a an cam goes with the ball? sadly I don’t get it, but I do know a player has to press a number to pass the ball to other players or teammates.

There is player A and player B. Player A has the ball, and he presses number 1 to pass to player B. Player b looks at the ball and runs towards the target location (if it’s a moving pass) to catch the ball.

I could very much still use some help, I have no idea what to do. I’ve tried firing an event and using velocity but for some reason the ball will start going to the area then just fall down in the middle of the pass. I believe it has something to do with network ownership but I’ve tried setting it to all different things and it does not work properly.

Have you ever tried getting the nearest person and passing the ball to them?

But idk how to do the passing. In my original comment im pretty sure I said I figured out how to actually throw the ball; long story short I did not. I’ve contacted some basketball game developers and still have heard nothing. Idk if I’ll ever figure this out.

you could do the passing ball in ther air the same as shooting but receiving the ball to the other team mate would be the hard part

I will see what I can do. By the way, thank you so much for helping me!

Ok, so I found a way to actually handle the pass by the client, but as you said recieving the ball is a little hard. I figured it out, but it seems a little inconsistent. Edit: I DID IT!!! It gets tricky with network ownership but I just fired a server event after throwing the ball on the client with ball:ApplyImpulse and what it does is it sets the balls parent to the workspace, and then sets the network owner to the player throwing the ball (just to overwrite a part that sets it to nil in my script) and then add a wait(0.5) and if the ball doesnt have a new network owner then set the network owner to nil. Thank you for the help!!

1 Like

You can try doing something like body force and when the ball is in air the players humanoidrootpart is following the ball by its position