NPC Clothing Shop

Hello,

Im making a RP Game called: “Chicago, Illinois”, and in the game i have a NPC clothing shop.
I would like to know how to make a clothing shop where you can pay with money(leaderstats).

Hi!

Which part do you wish to know more about?

You gotta set out a plan for what you try to achieve. A good practice would be to write down, how the clothing shop should work.

A simple “store where you can buy clothing” won’t be enough. :slight_smile:

Here’s a example of a list:

  • Clothing Store
  • When user walks in, they can go over to a hanging clothing piece
  • When they get close, a prompt pops up. If they trigger the prompt a gui with clothing name, price and so on will pop up.
  • Have a buy button in the gui, that when they try to buy the clothing, they send a remoteevent to the server, with the clothing name(or id).
  • On the server lets have a OnServerEvent that listens to this event. If the clothing name(or id) they sent is valid, check if they have money enough.
  • If both checks are valid, take the amount of money from them that the clothing cost, and give them the clothing.

Now when you’ve set yourself a plan. Try search up on google with the different keywords like “Roblox Prompt” or “Roblox remoteevent”.

1 Like

Thank You!
I will try to make it, absolute live saver!

Have a nice day and happy scripting! - Feel free to return if you stumble upon problems, that you can’t solve yourself after trying to debug it yourself. You mostly learn scripting by debugging. You can read a lot in articles and/or threads, but they will only help you to a certain extend.

1 Like