Hello, so recently I have been trying how to script on https://developer.roblox.com/ (I think it’s called developer hub) and there was a course of creating a part that kills you once you touch it. And there are some parts of the course that ask to add this:
So this is simply using the Touched event. By default, Roblox passes the thing that touched the killing part which is the otherPart. However to kill a user we need to find it’s humanoid, and when a character touches a part it only passes the specified body part that touched the part not the humanoid so to get the humanoid we find the parent of it which is parentPart or the Character Model.
otherpart is the part that touched the part with the script. For example, if a players Left leg touched the part with the script, otherpart would be equal to Left Leg, if that makes sense.