How to make a tool give any currency in roblox studio!

Опубликовано: 11 Август 2026
на канале: AlfieDeveloper14 🐱
90
0

I will put the scripts but if you want to do it yourself you can!

stats:
-[[Leaderstats]]-

game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "leaderstats"

local cash = Instance.new("NumberValue", leaderstats)
cash.Value = 0
cash.Name = "Cash"
end)

debounce:

local player = game.Players.LocalPlayer
local db = false

script.Parent.Activated:Connect(function()
if db == false then
db = true

print("Activated!")
local remoteEvent = game.ReplicatedStorage.CashAdded
remoteEvent:FireServer()
wait(1)
db = false
end
end)

addclicks:

local remoteEvent = game.ReplicatedStorage.CashAdded

remoteEvent.OnServerEvent:Connect(function(player)
local cash = player.leaderstats.Cash
cash.Value = cash.Value + 1

end)

Dont forget to add the remote event!