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
Change coins.Value = 0 + str.Value too coins.Value = coins.Value + str.Value