Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Please explain in more detail. If you mean "player's equipped item", then no script is required. Select "Fixed" next to the weapon or armor in the Actors tab of the Database.