How to get table of parts that touch but don't intersect with a part?

Hello, this is my first post, so I may format things wrong, if so, please correct it.

Anyway, I have been trying to make a game where the player has to make parts of a certain value all match up. However, I have looked a bit and could not find anything to get a table that suits this need. The parts cannot intersect, as I feel like that would be really annoying to make.


Above, they SHOULD glow with a Highlight object, as they are the same value.

After looking at everything I could find about collision, nothing really helped. Here is the script I am trying to using to check the parts that touch it.

	print(TouchingParts)
	for i=1, #TouchingParts do
		local TouchingPart = TouchingParts[i]
		if TouchingPart:WaitForChild('SurfaceGui').Text == Label.Text then
			print(TouchingParts)
			script.Parent.Highlight.FillTransparency = 0.75
		end
	end

If there is some way to do that, please tell me how.

1 Like

nvm figured it out, workspace:GetPartBoundsInBox

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.