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
if p and stats and str and coins then
if str.Value > 0 then
coins.Value = coins.Value + str.Value
end
end
end
end)
the issue here is that the int values don't add up together any ideas?

5 comments
add prints to see where it stops running then shows us the output
Yeah do what orange said.
spelled strength wrong btw :)
yeah i know it's okay
Are you sure str.value is actually > 0?