Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a shop where you get hats with in-game cash ? [closed]

Asked by 6 years ago

Something without using robux, only In-game cash.

0
A Gui Shop? MRbraveDragon 374 — 6y
0
u use stats and functions, have fun greatneil80 2647 — 6y

Closed as Not Constructive by lukeb50, Axceed_Xlr, and minikitkat

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

This should help you make a shop:

Start by giving Players a Money variable: https://wiki.roblox.com/index.php?title=Leaderboards

Second make a Buy button: https://wiki.roblox.com/index.php?title=API:Class/ClickDetector

Third Check if the Player has enough money: https://wiki.roblox.com/index.php?title=Conditional_statement

Here is an example of checking if the Player has enough money:

Player.Money.Value >= 100 then
    print("Player has enough Money!")
end

Then to give the Player the hat, just set the Hat's Parent to the Player's character. (Just in case you don't know about Children and Parents): https://wiki.roblox.com/index.php?title=Creating_Parts_via_Code

It's a long read but it's worth it. Once you learn the basics it will be easier to find out how to do things on your own by just reading the Wiki.

Ad