Hello, how do I want to make so If some part touches certain type of terrain for example sand then something happens?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I want to make so If some part touches certain type of terrain for example sand then there’s dust coming from wheels.

  2. What solutions have you tried so far? I thought about making some blocks so when part touches particle emitter becomes true

Can you suggest me something to do?

2 Likes

I dont work with particles or any of that sort, but you could try and use a Touched event with a debounce, create some particles wherever you need them, then use Debris service to clear them.

4 Likes

so I will have to use regions?

2 Likes

Err, no. If you want them to only happen in a certain area maybe, but touched events are the way to go.

but how do I detect terrain materials, I need to know how they are called?

Hmm, I dont think you necessarily can so you can try and make an invisible part or region I guess.

1 Like

ok thank you I’ll try that :slight_smile:

Use WorldRoot:RayCast since the result will give you the part/terrain material.

1 Like

Thank you, but is there an easier method?

workspace:FindPartsInRegion3 should also work but I don’t know what kind of array entry it exactly returns when Terrain is found.

1 Like

ok thank you I’ll try that too