for p,E in pairs(CollectionService:GetTagged("\067\111\105\110"))do E.Collider.Touched:Connect(function(p)local u=(game:GetService("\080\108\097\121\101\114\115")):GetPlayerFromCharacter(p.Parent)if u then processCoinTouch(u,E,COIN_REGEN_DELAY)end end)coinAnimation(E)end
-- Initially connect all coins to touch detection
for _, coin in pairs(CollectionService:GetTagged("Coin")) do
	coin.Collider.Touched:Connect(function(hit)
		local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
		if player then
			--print('Coin touched by '..player.Name)
			processCoinTouch(player, coin, COIN_REGEN_DELAY)
		end
	end)
	coinAnimation(coin)
end
