Look at your game’s frame rate. If it remains static (e.g., 60fps), then your code is incorrectly changing the speed of your animation. If the framerate drops, then the spawning of the sword is probably causing lag. I recommend preloading and instancing the sword if that ends up being the case and see if the game still lags
Frame rate seemed fine, but preloading and instancing the sword did the trick! Thanks!