wait(.5) -- if ClickDetector detects a click script.Parent.Button.ClickDetector.MouseClick:Connect(function() -- if work is false if work == false then -- change work to true work = true -- creating a new item with settings local Part = Instance.new("Part") Part.Size = Vector3.new(1,1,1) Part.Material = Enum.Material.Asphalt Part.BrickColor = BrickColor.Yellow() Part.Position = script.Parent.DropperPart.Position Part.BottomSurface = "Smooth" Part.TopSurface = "Smooth" -- adding a new IntValue element local Money = Instance.new("IntValue") Money.Name = "Cash" Money.Parent = Part Money.Value = 1 -- assigning the Debris service to a new block Part.Parent = workspace.Debris -- the object will disappear after 10 seconds game.Debris:AddItem(Part,10) wait(.2) -- set work to false work = false end end)