- What do you want to achieve? Keep it simple and clear!
I’ve been trying to make a tool that shoots various star shaped bullets in a circle, these are anchored so that i can tween them foward without them looking weird, and uncollideable so they dont act like blocks that can be jumped on, then i made a sound play when it touches a character, however, Touched events don’t work if two of the parts intersecting are anchored, so i would like to know if there is a way to check if anchored characters and these anchored bullets are touching so that it can play a sound.
- What is the issue? Include screenshots / videos if possible!
As i said before, Touched events don’t fire if both of the parts touching are anchored, which makes the sound unable to be played via collision.
I’ve also tried using the BasePart:GetTouchingParts() function for checking if a part was touching the bullet, but that didn’t work either since the function returns an empty table if the basepart is uncollideable
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to weld another unanchored star to the original bullet to see if the collision would now work since this one is unanchored, but it seems that welding it to the bullet makes it register as anchored, because the Touched event over the secondary star didn’t fire on this situation. I used a regular Weld and a WeldConstraint, both with the same result
I tried using an unanchored star bullet with a body velocity to replace the tween, however it lagged too much, so i decided to keep the bullet anchored since it doesnt lag
I saw a RaycastingHitbox Module script and i used it in my star bullets, replacing the Touched event, and it did everything it was supposed to, and even played the sound after touching an unanchored dummy, but it still didnt play the sound after touching the anchored character, so that didn’t work either.