How do I make lava terrain hurt?

Hello,
Is it possible to make lava terrain hurt a player when he is touching it? I’ve searched for an event or function that could help me do that here and I didn’t find.

I think theres a way to detect what kind of Terrain someone is standing on, let me take a look rq

1 Like

https://developer.roblox.com/en-us/api-reference/property/Humanoid/FloorMaterial

1 Like

Okay, I’ve never heard about this property but lemme try that