Discuss Scratch

Noah10t
Scratcher
8 posts

Scratch project not running code

I’ve been working on a project for a few months, and suddenly the website and app have stoped it from being able to run. The flag isn’t doing anything, and I can’t force scripts in the project either. Does anyone know what’s happening? I’ve reloaded ten times now and restarted my computer.
Hammykat-_-
Scratcher
64 posts

Scratch project not running code

Do you have a link to the project? I'll try and see what's wrong
EpsilonX
Scratcher
83 posts

Scratch project not running code

There's a few things you could try:

-See if the error repeats itself on a different (and preferably newer) device.
-Check for and install updates for your computer.

If the error repeats itself on a different device, the problem is probably in the code. Try checking for a “broadcast() and wait” block or a “forever” block within a “my block” that has “run without screen refresh” toggled.
If the error does not repeat itself on a different device, and there are no available updates for your computer, your computer may be too old to run the code. The program also might be too big to load or it could require too much processing power to run.

Hopefully this helps!

Last edited by EpsilonX (April 19, 2026 21:34:41)

Noah10t
Scratcher
8 posts

Scratch project not running code

Alright, I tried on my school computer and my phone. It unfortunately didn't work… I tried replacing all of the green flag scripts with event hat blocks, but that didn't work either, even if I made a new sprite with new code it didn't run. I shared it so I could use Turbowarp, and after a bit of messing around I got it to work again. I think something might have messed up the way scratch ran the project..?

Here's the project (on a different account so my friends don't find it, it's unfinished):
https://scratch.mit.edu/projects/1309169054/
Hammykat-_-
Scratcher
64 posts

Scratch project not running code

I know why! There are glitched inputs (A new bug in the latest updates). The inputs are basically just dark and if a block with a glitched input runs it'll crash / freeze the whole project. I found one in the sprite ‘music guy’. When I took that out and replaced it your project started working! That's the only one I found. Make sure there are no others to ensure the project doesn't crash!
Hammykat-_-
Scratcher
64 posts

Scratch project not running code

Also really cool project! I tried it out after removing the glitched block and it runs smoothly! Also the UI is clean, the music is high-quality and it's fun! One thing is that you could add something so that you can press space to do it along with clicking
Noah10t
Scratcher
8 posts

Scratch project not running code

Thank you! And which input are you talking about? The small rest area after the tutorial?
RokCoder
Scratcher
1000+ posts

Scratch project not running code

[Edit: Looks like my answer was ninja'd]


I you look in your Music Guy sprite, you'll see the following -

when flag clicked
go to x: () y: () // Note that the input areas are blue rather than white in your project
clear graphics effects
other code... :: custom

It feels like something has corrupted that go to block. Remove it, and the project works as intended.

Quite a few weird errors are happening with the editor at present, and my best guess is that this may be related to those.

Last edited by RokCoder (April 20, 2026 19:54:54)

Hammykat-_-
Scratcher
64 posts

Scratch project not running code

It's under a ‘when green flag clicked’ block, in the ‘Music Guy’ sprite, the script in the far top-left.
TheManInWhite
New Scratcher
2 posts

Scratch project not running code

Which script do you want to be activated by pressing space?

Edit: oops wrong acc

Last edited by TheManInWhite (April 20, 2026 19:55:59)

Hammykat-_-
Scratcher
64 posts

Scratch project not running code

I mean when the player is doing the best thing where they need to time it to get it on the bar, they could have the option to press space instead of clicking with the mouse
TheManInWhite
New Scratcher
2 posts

Scratch project not running code

If you are talking about the gameplay, you can press space for the first and second gamemode.
uzuga
Scratcher
1 post

Scratch project not running code

when I was making my game ( my best one yet) needed the name code so I can name my sprite but when I put the code in and typed my name and submited it it just deleted and asked again for like 10 more time until I think I needed to tell scratch but before all that do you guys know anything about it? and btw I did not duplicate them I did not forever them it was doing that by itself. and the code was perfectly done and I made sure by looking at my old game and that one worked when I have the same code on my other game and it is not working
Noah10t
Scratcher
8 posts

Scratch project not running code

The game is out! It's yet to be 100% done (and there are bugs), but it's playable!

https://scratch.mit.edu/projects/1291127779/
Noah10t
Scratcher
8 posts

Scratch project not running code

By the way, I'm dumb because I decided to fix something after announcing this, so if your game is bugged/fully completed you can reload to fix it

Powered by DjangoBB