Weird bug when I finish using my medkit

so basically I added a medkit to a left 4 dead remake(hopefully I can finish it)
and when I finish using the medkit,It makes the shotgun freeze in place,and basically detach from the player,like you’re unable to move/shoot/aim with it,and I don’t know how to fix it,
game link:https://flowlab.io/game/play/2734074
WASD to move
1(hold)to use medkit
E to interact
click to shoot
mouse to look/aim

Fixed it
Bug:when medkit was attached,and used,it would get destroyed,causing other attached objects to"Dettached"or stop and freeze in place
Solution:remove destroy block from the medkit code

1 Like