local Players = game:GetService("Players") for _, coin in workspace:WaitForChild("CoinPickups"):GetChildren() do if not coin:IsA("BasePart") then continue end local enabled = true local opacity = coin.Transparency coin.Touched:Connect(function(hit) local character = hit:FindFirstAncestorOfClass("Model") local player = character and Players:GetPlayerFromCharacter(character) if not enabled or not player then return end enabled = false player:SetAttribute("Coins", (player:GetAttribute("Coins") or 0) + 1) coin.Transparency = 1 task.wait(6) coin.Transparency = opacity enabled = true end) end