Ok so basically, I have scripted a fist combat system where when you press certain keys an animations play, but the thing is when I have weapons equipped, the sword animation gets overridden by the fist combat system I had made. If you could kindly just give me some information to prevent this from happening, that would be great.
Any help would be appreciated.

2 comments
so
_Gmakes it a global variable and accessible to all scripts? I didn't ask the question you are responding to, I'm just curious since I've seen it but didn't know what it wasYes, _G. makes it known across all scripts in the game, that way you can change values while in another script.