Hit detection not working

Hey there, im trying to revive an old hangout game i had years ago back in 2012 that is outdated at this point. my scripter has figured out everything except for the basketball tools actual hit detection when thrown into the hoop to give stats to the leaderboard.

hes apparently tried everything he can think of, here is the game link with his current progress on fixing it, BasketBawl (Basketball) | BETA - Roblox

No errors come up either.

From searching around he mentioned that this post here was a little helpful, Detection doesen't work if hit is a moving cframe object

But my end goal is basically you have your ball tool, it goes in the direction youre clicking in an upwards motion, if you get it into the basket it shows on leaderboard the distance u were from when u got in it in the basket, + given some points, but it seems like the hoop is not detecting the ball.

is there any known solution to fixing this outdated issue?

If your hit detection involves Touched then your ball does need to be physically simulated and intersect with the target part that you want the ball to trigger a hit with. CFrame is not physics simulation so it will not trigger the Touched event.

Not sure what your current environment looks like, what methods you’re using or anything about your code or circumstances so it’s difficult to offer a solution to your direct problem, rather only give tips on how you can perform hit detection that involves physically simulated objects.

1 Like