Player not Equipping Weapon

So I recently made an event where the player learns how to fight and goes through a bunch of dialogue--typical RPG stuff. In the event, the player is given a weapon called "Rusty Sword" through the command "Change Equipment." For some reason, this does not give the player the item when playtested. Yes, I have made sure the player and specific class can equip the type of weapon, and yes, I have tried everything I knew how to do. I am still a beginner so any help with this issue would be appreciated.
Have you given them the weapon in their inventory? Usually that has to be done before change equipment will work.
Yup, can't equip a weapon you don't have after all.
Yup, can't equip a weapon you don't have after all.

1719104546619.png


😍
And by the code
return false if new_item && !$game_party.has_item?(new_item)
Game_Actor line 209
Notice the ! (not) for $gane_party
If the item is not in the party inventory it will not equip
Okay, turns out you were right and all I had to do was add the weapon to the player's inventory first. I tried directly equipping the weapon to the player and adding it to their inventory, but I guess I never tried both.

Original thread: https://forums.rpgmakerweb.com/threads/player-not-equipping-weapon.169699/