Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to get to win screen after score hits a certain number
- ottomalpense
-
New Scratcher
3 posts
How to get to win screen after score hits a certain number
Hello 
I am trying to make the win screen come up with the music when the score hits a certain number (e.g. 30), but I am unsuccessful at this. Can anyone help me / point me in the right direction?
Many many thanks in advance!
Link: https://scratch.mit.edu/projects/574589015
- OM

I am trying to make the win screen come up with the music when the score hits a certain number (e.g. 30), but I am unsuccessful at this. Can anyone help me / point me in the right direction?
Many many thanks in advance!
Link: https://scratch.mit.edu/projects/574589015
- OM
- rushiingwater
-
Scratcher
21 posts
How to get to win screen after score hits a certain number
if <(score) = [your number]> then
broadcast [ win]
end
this code might help!, unless it was the one you used previously
- slap83
-
Scratcher
100+ posts
How to get to win screen after score hits a certain number
well, you still need the event block. I know the tyranny of it well. the event block can make a challenge when creating, and I don't exactly think you can really make a script without it, so… yeah.if <(score) = [your number]> then
broadcast [ win]
end
this code might help!, unless it was the one you used previously
- TKTK1234567
-
Scratcher
1000+ posts
How to get to win screen after score hits a certain number
when green flag clicked
set [Score v] to [0]
forever
if <(Score) > ((What you want) - (1))> then
broadcast [Do what you want v] and wait
stop [all v]
end
end
- slap83
-
Scratcher
100+ posts
How to get to win screen after score hits a certain number
when green flag clickedsee? the event block is a very essential part of coding, and you need to find a way to get past its tyranny and force against free variable usage.
if <score=??> then
broadcast [win v]
end
- Flexy1234meth
-
New Scratcher
1 post
How to get to win screen after score hits a certain number
im maing a game so its hard, im tryinng to win a challange for a 10 $ target gift cardd.

- GoodboyzoomScratch
-
Scratcher
40 posts
How to get to win screen after score hits a certain number
when green flag clicked
forever
if <[Variable] = [Value]> then
Put the script here and it will run when the variable reaches a value.
end
end
- The_Cool_Scratch_Guy
-
Scratcher
100+ posts
How to get to win screen after score hits a certain number
// Backdrop
when green flag clicked
forever // If it only needs to happen once, you can get rid of this.
wait until <(score) = [30]>
switch backdrop to [win screen v]
play sound [\[put your music here\] v]
wait until <not <(score) = [30]>> // If it only needs to happen once, you can get rid of this, too.
end
- grkw2020
-
Scratcher
500+ posts
How to get to win screen after score hits a certain number
This is an old topic, don't post here.
- The_Cool_Scratch_Guy
-
Scratcher
100+ posts
How to get to win screen after score hits a certain number
I just realized we were all necroposting lol. Reporting this to be closed.
ninja'd
ninja'd
Last edited by The_Cool_Scratch_Guy (Sept. 19, 2025 22:06:00)
- Discussion Forums
- » Help with Scripts
-
» How to get to win screen after score hits a certain number