You can write your topic however you want, but you need to answer these questions:
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.
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
Syntheix
(noah)
August 18, 2020, 3:02pm
#2
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
Syntheix
(noah)
August 18, 2020, 3:09pm
#4
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?
Syntheix
(noah)
August 18, 2020, 3:13pm
#6
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
NachtHemd
(NachtHemd)
August 18, 2020, 3:53pm
#8
Use WorldRoot:RayCast since the result will give you the part/terrain material.
1 Like
Thank you, but is there an easier method?
NachtHemd
(NachtHemd)
August 18, 2020, 4:36pm
#10
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