local d = 0
script.Parent.Touched:Connect(function(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
local p = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = p:FindFirstChild("leaderstats")
local str = stats.Strenght
local coins = stats.Coins
if h and d == 0 then
coins.Value = 0 + str.Value
end
end)
it does not add to the coins value any help is apriciated

2 comments
Why are you adding 0 to value? If I am right I predict it should be coins.Value = coins.Value + str.Value.
Well if you're adding 0 + the value it only returns the value. It should be leaderstatsValue + str.Value