So I found this gun script in my models that dates back to 2013. I don't remember writing this, but I thought It would be a good idea to rewrite the whole thing so it supports my FE game. It works better than it used to, the only issue is I get these errors when the weapon is fired:
00:13:19.821 - UpperTorso is not a valid member of Workspace and TakeDamage is not a valid member of Model. It doesn't do anything to the weapon, but It outputs the same error each time the weapon is fired, so it gets really annoying. I could use some help on why it's doing this. The code is located here as it 's 469 lines, but the only lines that have issues are lines 223, 457, 416, 241 and 346. Images of the output here aswell.
Edit: There is some team thing in there that I'd like to get rid of without breaking it. If someone could do that aswell that would be greatly appreciated.
