Which script do I need to choose?

The client always asks, the client can say “can I buy this sword?” the server will then check if they have enough money and respond with “yes or no”

You use remote events and functions to communicate from client to server, but if you don’t use them properly the game can still be exploited.

I recommend you learn about Remote Events/Functions, and FilteringEnabled/exploits

good post