All of the parts above touch the ones that are next to them, however, GetTouchingParts() function does not return anything when called on any of the parts.
I think the only way of achieving this is by me going through every 87 tiles one-by-one and manually create object values of touching parts, but that would be too tiring and take too long. What do you think I should do?
I’ve seen someone with a solution for his, by adding a TouchInterest really short.
EDIT: found it
local function GetTouchingParts(part)
local connection = part.Touched:Connect(function() end)
local results = part:GetTouchingParts()
connection:Disconnect()
return results
end
local results = GetTouchingParts(workspace.PartA)
print(#results) --> 1
Um you can just use raycasting… You can also just name them based on their coordinates or store them in a table based on their X,Y,Z. Makes the most sense considering theyre arranged in a square grid. Other methods arently really necessary or as reliable or as efficient.