As you read from the title, I wanna know how do I check if an object touched another..
First you need to define your object you want to be touched. So say the script is inside of said object.
script.Parent
Now you need the Touched function.
script.Parent.Touched:Connect(function() end)
Now to answer your specific part of the quest you get the touching object for the touched part by adding a variable inside the function parenthesis.
script.Parent.Touched:Connect(function(Hit) end)
That would be where I put "Hit" inside the script. You can change that to anything but that's what I prefer. Then to see if it's touched by a specific object you make an if statement basically asking that same question.
script.Parent.Touched:Connect(function(Hit) if Hit and if Hit == game.Workspace.Baseplate or Hit.Parent == game.Workspace.Baseplate then print("Your desired object touched this object") end end)
In that script if the brick the script is inside of hits something named baseplate or the parent of what it hits is named baseplate then it will print Your desired object touched this object"