A machine for making cotton candy includes a shell, a sugar-spinning unit and a scraping unit. The sugar-spinning unit includes a heater located in the shell for heating and melting sugar, a bowl located around the heater, a lid located on the bowl, and a primary motor for spinning the heater and the bowl to spin the molten sugar. The scraping unit includes a holder located in the shell, a stopper connected to the holder, a lever pivotally connected to the holder, a first scraper attached to the lever, a second scraper pivotally connected to the holder, a hook connected to the second scraper, a spring for connecting the lever to the second scraper, a difference motor, and a crank including an end connected to a mandrel of the difference motor and an opposite end connected to a pin movably inserted in a slot defined in the lever.