[SOLVED] BUG Character being launched into the air

Summary

The Blueprint code was working perfectly until I added a reference to an ENUM variable. This enum variable holds a name required to play a specific animation. The problem is that, after adding the variable, the character gets launched into the air whenever I switch weapons. Disconnecting the variable prevents the bug, but the animations fail to load. Collision for the weapon meshes has been disabled. I’m not sure what could be going wrong. I’d appreciate any help.

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Character

Steps to Reproduce

after adding the variable, the character gets launched into the air whenever I switch weapons.

Expected Result

The character must change weapons normally and the animations must be played accordingly to the weapon equipped

Observed Result

its not working

Platform(s)

pc

Upload an image

Video