Assist Basketball

How would I go about checking if a player passes, and within a couple seconds, if the player who receives the ball makes a shot, adding to the passers assist count? Thanks!

2 Likes

Check who had the ball before the person who shot it, also check if they were on the shooters team so it counts as an assist.

1 Like

You can add a string value in the ball which if player1 have the ball in hand it will create a string value(it will be parented to the ball which will take 5 second to destroy when the ball isn’t in his hand anymore) with its name in then he pass the ball to player2 then the ball create another string value with its name. When player2 make a goal then the string in the ball for player2 will be destroy the server will then check the string value in the ball then find the player (which is player1) and check if his team is with player2(the person that made the goal) then proceed to do assist

1 Like

Do you have a passing and shooting system implemented? I need to see that code.

Just read up on egomoose’s tutorial on projectile motion

1 Like

I know that tutorial. I need to see what system they have so far.