Killing a player with a gun can cause the gun to break

Describe the bug:

I believe this happens if you kill a player and they spawn in the same position, and your bullet hits the character on the same frame they died, the whole gun script breaks. You can no longer shoot the gun.

How do you cause this bug?

  • Create a starter game with a single spawn point
  • With 2 players in the game, have 1 player kill the other with a high fire rate weapon

Screenshots / video of bug:

Which platform: PC

Which input: keyboard + mouse

Your Crayta username: Cereal

Game seen in (including “Hub” or “Editor for XYZ”): Editor

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): Every time with the gun package, in the particular setup I’m testing with. Also tried it with a pistol with auto fire off - couldn’t get it to happen, which is why I think it’s a frame timing thing.

Time + date seen: October 15 2022

Version number (found in Help tab in Settings): 0.h1.98.133663