Hello DevForums! I am still trying to make a swinging system and decided to do this by spawning a part inside a nearby part for the webs to anchor there. The issue however is that the part spawns directly in the middle of the part, which will cause issues. I decided that to resolve this, I would need the part to move closer to the player, all the while still staying in the nearby part. Even though I have the idea, I do not have any idea on how to do this and need help.
I am not sure what you are trying to accomplish here
edit: I see this is a spiderman-like web swinging system. When you are placing the part for the web to attach to you can use Mouse.Hit to get the position in space the mouse touches. I think you might be using Mouse.Object which returns a part, which is why you are having the issue where the web is placed directly inside a part.
Recently I have been trying to improve my web swinging system to have an automatic anchor point detection, since I have a swinging system that forces players to find a part to attach their webbing to, which I saw as inconvenient. I have tried many things to get this to work, but to no avail.
Use the method I told you above or try raycasts