What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried to find a solution on YouTube, but it didn’t help. I also tried it on the forums. It didn’t help everywhere and there was the same error “attempt to index nil with parent”
Sorry if this post is off topic, this is my first time posting on the forum.
.Touched doesnt have a second argument, the only argument is the part that touched the part thats connected to the touched event so instead of looking for a humanoid in partB look for it in part