Hello.
I know there are many other Topics similar to this so please try not to give me copy and paste answers from all of those. I have found that many people have problems with :GetTouchingParts()
but I have tried many of their “Solutions” and none have worked.
My Issue is that I am trying to weld a block in my building game to parts that are surrounding and touching it but it does not work. The Blocks are 2x2x2 stud blocks and I have double checked that the positioning and sizing is as perfect as I can get it. I then copy and paste the block to surround it with a couple other blocks with a ball in the mix as well. When I test the game and it is supposed to say that the surrounding blocks are touching, it does not say that.
Ideas Tried So Far:
workspace:GetPartsInPart()
part:GetTouchingParts()
- Various UnAnchoring and Anchoring Combinations
- Various CanCollide, CanQuery, And CanTouch True And False Combos
- Welding The Unanchored Parts To Anchored parts instead of anchoring them
-
local Touch = script.Parent.Touched:Connect(function(part)end) local Touching = script.Parent:GetTouchingParts() Touch:Disconnect() print(Touching)
- inserting various waits at various positions (in the case it is firing too early)
- changing block surface types (which I might have done wrong because idk quite how to use the surface types properly)
- Changing part size to slightly larger then shrinking back to normal size
The goal I am aiming for is to weld touching parts similarly to how Plane Crazy Welds them. It should not matter if it is done when i am spawning in the creation or when the block is placed, as long as it welds the correct blocks together. Another example is My Previous Game that I tried this in where i got it to somewhat work but the same solution no longer seems to work. (in that game I resized the parts slightly larger, got the touching parts, and then shrank them back to normal size).