When using Clone() on a part it doesn't clone the part's child which is a part

Hello! I have a game where the player can fire a weapon to attack. But I want it to have a hitbox bigger than it’s actual size. I tried putting the hitbox in the weapon but when it got cloned, the hitbox wasn’t in there. I tried to put other things like point light and it got cloned but the hitbox get’s deleted after like three seconds. By the way I’m using bodyVelocity for the weapon. Here’s my screenshots.

Weapon in explorer not in game

Not in game

Script:

1 Like

Are you sure your hitbox part is anchored and has cancollide on?

2 Likes

To extend this, the part wont stick to the part unless you use some sort of constraint or code, if (like @Xx_FROSTBITExX said) your part is unanchored and has collisions off it will fall out of the world and be automatically deleted.

Oof thanks guys. I just realized that can collide and anchored is false and I didn’t have any weld constraints! Thanks again!

1 Like