(Redirected from Making Scratch Crash (3.0))
- This article or section documents the current version of Scratch (version 3.0). For this article in Scratch 2.0, see Making Scratch Crash (2.0). For this article in Scratch 1.4, see Making Scratch Crash (1.4).
|Warning:||These scripts shown may freeze or crash your Internet browser, Scratch, or computer. Make sure you save your changes before attempting.|
There are several methods to make Scratch crash. This article is an overview on the different methods that can be used to achieve this.
Crashing via an extremely long string
One way of making Scratch crash is making a variable or list that will double itself on every frame, causing the length of the list to grow exponentially. This will eventually lag Scratch very hard before freezing.
when flag clicked set [variable v] to [a] // "a" can be replaced with anything that is not empty forever set [variable v] to (join (variable) (variable)) end
when flag clicked add [a] to [list v] // "a" can be replaced with anything that is not empty forever add (list) to [list v] end
Crashing via recursion
Another way to crash Scratch is to make the project to loop infinitely. This will cause Scratch to not be able to finish the script, causing the project to freeze.
when gf clicked create clone of (myself v) when I start as a clone create clone of (myself v) delete this clone