I have created a paintball game! I was wondering how to make a shop? a Gui! I need a Gui that can take away your points ( I have allready Made Points) Also, it needs to give you a tool from the ToolBox! Is that Possible??
Yes it is. You can find a lot of free scripts. If you don't want use free one, use it as example and make your own.
Here is few advice:
1.if player.leaderstats.Points.Value >= item.Price.Value then
- this will check if player have enough points ( whether it's more than item cost or equal the item cost)
2. local WeaponsBin = game.Lightning
(or) ServerStorage
(or)ReplicatedStorage
- these are best places to store all of your items.
3. If player Points
>= item cost
then local TheItem = WeaponsBin:FindFirstChild(item.Name)
- we want find the item in our Item Storage;
TheItem:clone().Parent = player.Backpack
or player.StarterGear
- here we copy the item and put it into player backpack or starter pack.
I'm not going to write you whole shop :D Hope few of these will help you. Do some research and you eventually find way to make shop.
Closed as Not Constructive by M39a9am3R
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?