How do you do a 'Part-touch-Part' effect?
Hey guys. I just have one simple question: How would you make a Part do an action when touched by another Part?
For example, let's just say that I have a part named GRASS and another part named MOWER. Whenever the player pushes the part named MOWER and it touches the other part named GRASS, GRASS becomes a different size. In this case, GRASS becomes smaller.
Would the general concept of it go something like this? :
2 | if hit.Name = = "MOWER" then |
3 | script.Parent.Size = Vector 3. new( 1 , 2 , 1 ) |
6 | script.Parent.Touched:connect(touch) |
If anyone could teach me, it would be very, very helpful!