Does .Touched Trigger With Terrain?

Just a question, thanks for your help!

1 Like

This post should be under the #help-and-feedback:scripting-support category.

To answer your question: .Touched can only be triggered with BaseParts. A way to detect whether the player is standing on a certain type of terrain material is by setting a raycast or using :GetPropertyChangedSignal() to detect when the players FloorMaterial has been changed.

1 Like

Okay, is there anyway of doing this with BaseParts?

This question could be answered if you read documentation: Terrain.

Terrain inherits from BasePart. Not sure what you’re trying to do since you didn’t include a use case but FloorMaterial, raycasting and reading voxels are probably the preferable way to work with terrain.

1 Like

You could use invisible CanCollide false parts and trigger events when they touch that.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.