help the value will not add to the other value although it recognises it
local Part = script.Parent Part.Touched:Connect(function(HIT)
local H = HIT.Parent:FindFirstChild("Humanoid")
if H then
local player = game.Players:GetPlayerFromCharacter(HIT.Parent)
if player then
local leaderstats = player:WaitForChild("leaderstats")
local stats = player:WaitForChild("stats")
local Currency = leaderstats.money
local Selling = stats.cheese print(Currency)
if Selling.Value > 0 then
Currency.Value = Currency.Value + Selling.Value *1
Selling.Value = 0
end
end
end
end)

2 comments
Can you make this more readable
Ok