Here is the script for a coin collecting
local coin = workspace.Coin
coin.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
player.Leaderstats["Coins"].Value = player.Leaderstats["Coins"].Value + 1
coin:Destroy()
end
end)
However there is no other collectable coin besides the only one. They all have the same name. Anyone has a idea how can i fix this or improve my script?

2 comments
Could you try changing the names of the coins, and could you tell me, are you running this in one script, or in all of the coins?
Line 1 finds only the first instance by the name "Coin". You would have to use GetChildren() to retrieve every child of workspace and check for every child by the name "Coin".