local plr = game.Players.LocalPlayer local ws = game:GetService("Workspace") local coins = {} local cd = {} local function touch(c) local ch = plr.Character if not ch then return end local h = ch:FindFirstChild("Head") if not h then return end firetouchinterest(c, h, true) task.wait() firetouchinterest(c, h, false) end local function add(c) if c:IsA("BasePart") and c.Name == "Collectible Coin" then coins[c] = true end end local function rem(c) coins[c] = nil cd[c] = nil end for _, d in ipairs(ws:GetDescendants()) do if d:IsA("BasePart") and d.Name == "Collectible Coin" then coins[d] = true end end ws.DescendantAdded:Connect(add) ws.DescendantRemoving:Connect(rem) while task.wait(0.1) do for c in pairs(coins) do if not c.Parent then coins[c] = nil cd[c] = nil elseif not cd[c] or os.clock() - cd[c] > 0.5 then cd[c] = os.clock() task.spawn(touch, c) end end end