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?
local str = stats.Strenght
It doesnt look like 'strength' is spelled correctly here, this might be the problem