- What do I want to achieve?
I want a Moving, Non-Colliding KILLZONE to detect if a part from a character is touching it. If a part IS touching it, and it belongs to a Character, the Humanoid’s health gets set to 0. Simple, right? Well, not exactly. I only want the player to die at a specific time. The image below is a visual example.
.
.
2. What is the issue?
When I attempt to detect parts, such as using workspace:GetPartsInPart(KILLZONE)
, nothing to do with a character or anything. Even the Character parts with CanCollide on aren’t detected. It’s almost as if the character doesn’t exist. To make matters worse for people trying to come up with solutions, no, there are no LocalScripts involved with this. One last thing to mention is the fact that with each solution, there was a print function, that prints either a table, or "yaya "..hit.name
.
.
.
-
What solutions have I tried so far?
The solutions that weren’t first attempt were google/devforum searches.
Using workspace:GetPartsInPart(KILLZONE)
, nothing to do with Character parts shows up, instead, it detects stuff like rooves. If I were to ask it to print a table, it would probably print something like {Roof, Floor, Light}
. Below is a visual example of this.
.
Among one of the first solutions I actually tried was, you guessed it,
KILLZONE:GetTouchingParts()
, but of course, since the KILLZONE part is Non-Collidable, It detects absolute zero. .
The last solution I tried, was attempting to utilize the
.Touched
function, but just like the ;GetTouchingParts
solution that I tried, absolutely nothing was printed. Nothing. And before you ask, no, there is no condition for this printing function, it is the first line after the Touch function is fired. It is absolutely essential that I figure out how to make a player get killed on command by a moving KILLZONE. If this feature is not there, the game would not be the same.