Why isn't my script working?

I’m a pretty experienced scripter and I’m confused about how/why this isn’t working. I’ve gone through a mental checklist and I don’t see anything wrong with it. I’m running on 4 hours of sleep so apologies if I miss something.

image

The part is supposed to kill the player upon touching it but nothing happens, no errors.

STATUS: PROBLEM SOLVED

Where is the script currently located?

Make sure the part has its CanTouch and CanCollide properties enabled.

1 Like

Inside of the part that is intended to kill the player.

EDIT: yep, it has both

Holy crap. I am the biggest idiot ever. The part wasn’t anchored.

That shouldn’t matter, unless the part was falling through the map.

.Touched will still fire for unanchored parts.

It was falling through the map, the part was a floating obstacle in the air but it was transparent so I couldn’t tell.

1 Like

Troll obby? That seems like it.

Not really, I was just messing with scripts lol