Ive set up a remote event to check if the player owns an item everytime they click it in the store, when you first click it then it works (if they own it then it shows an already owned text label, if not then it opens the buy menu) but if they then buy the weapon and click it again it allows them to buy it again, ive tried messing around with it but cant seem to find a way to solve it.
This is the first part of the local script, which fires the remotevent to the server to check for items

This is the server script which then checks if the item is owned:
This is the 2nd part of the local script which then sets the values depending on if the item is owned for the first script to use:

Any help is appreciated
