Help With Currency system

i dont see “around folder” i only see “folder” and if i delete the hole 9th row it wont work

Just remove the quotes that are around folder, I do not get what is so hard.

ok i got it. what was so hard is to me you made it seam like there was something called “Around Folder”

ok i got that but how do i make a shop where that will use the coins

that will use remote events here is an example of a shop

Search it up. There are already many answers for this.

Fire a remote to the server once the button is clicked, check if the player has enough cash and decrease the value on the remote.

Here’s a basic example.

local ReplicatedStorage = game:GetService('ReplicatedStorage')

local button = script.Parent
local remote = ReplicatedStorage:WaitForChild('BuyItem')

button.MouseButton1Click:Connect(function()
remote:FireServer('Advanced Gun')
end)
local ReplicatedStorage = game:GetService('ReplicatedStorage')

local remote = ReplicatedStorage:WaitForChild('BuyItem')
local items = {
['Basic Gun'] = 0,
['Advanced Gun'] = 50
}

remote.OnServerEvent:Connect(function(player, item)
local price = items[item]

if not price then
return
end

if player.leaderstats.Money.Value >= price then
player.leaderstats.Money.Value -= price
print(player.Name, 'has purchased', item)
else
warn(player.Name, 'doesn\'t have enough to purchase', item)
end
end)

There are tutorials around youtube about how to make a shop.
And there are some posts around the devforum.

2 Likes