Answered by
7 years ago Edited 7 years ago
To do this it’s pretty simple and there’s a search bar on the roblox wiki to where you can search functions and other scripting stuff.
You only need this script inside one of the parts if you’re going to be very simple. Also, we don’t need to check for humanoids since you want to detect bricks touching each other
1 | local var 1 = workspace.PartOne |
2 | local var 2 = workspace.PartTwo |
4 | script.Parent.Touched:Connect( function (part)) |
5 | if hit.Name = = var 1. Name or hit.Name = = var 2. Name then |
Closed as Not Constructive by hiimgoodpack, docrobloxman52, and lukeb50
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?