I’m trying to figure out why the part won’t just weld straight to the character’s body part I choose
When I do weld it the part to the character’s body part it’s like 60 studs away from the character’s
I tried to look at youtube tutorial’s but so far no help, and looking at free models but they are no help either, they sorta have the same problem i’m having as well.
I noticed that your code is not getting the each of the part’s relative cframes to eachother.
I’d suggest not setting C1 and instead just set C0 to part.CFrame:toObjectSpace(head.CFrame)
From my experience with welding projectiles on Roblox in the far past, the problem is that the physics engine works in discrete steps. This means that a projectile will go through an object or bounce off an object and be in a new location, and not the position it would be during the exact time of collision. So when you get the touched event signal, it is not on the surface but soemwhere else. So when you attempt to weld a projectile to it’s target on touch, it won’t be on the surface like you expect, but where the projectile will be after some more time. This can also be exaggerated even more with Roblox’s networked physics.
One way to get around this is to possibly raycast from the projectile to the target object and use the ray’s hit position as an estimated collision point to weld the projectile.