Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I think Scratch is broken (or i'm just dumb)
- grewingh
-
17 posts
I think Scratch is broken (or i'm just dumb)
Okay, so I'm making a boss battle for my game, right? The code for the first attack worked FIRST TRY. So, what's wrong? Well, I made another attack where this red laser thing spins, and you have to find a safe spot. So, everything works, so now all I have to do is add the damage scripts, right? Easy! Or so I thought. I put this script, very simple:
when green flag clicked:
forever
If <touching (player)> then
change (health) by (-1)
wait until <not <touching (player)>
end
end
I literally made the EXACT SAME script for the other attack, but this time? It just didn't work! I tried a bunch of different scripts, like making an If, Else block, or making the forever loop after the message that starts that specific attack, but nothing works. I am fully convinced it's a bug with Scratch itself, but I really hope I'm just being dumb or something.
Any suggestions?
when green flag clicked:
forever
If <touching (player)> then
change (health) by (-1)
wait until <not <touching (player)>
end
end
I literally made the EXACT SAME script for the other attack, but this time? It just didn't work! I tried a bunch of different scripts, like making an If, Else block, or making the forever loop after the message that starts that specific attack, but nothing works. I am fully convinced it's a bug with Scratch itself, but I really hope I'm just being dumb or something.
Any suggestions?
Last edited by grewingh (Jan. 7, 2025 03:27:48)
- l_heart_Roblox
-
100+ posts
I think Scratch is broken (or i'm just dumb)
Can you link the game? That will give me a better visual on the code because your Scratch Blocks broke. 

Last edited by l_heart_Roblox (Jan. 7, 2025 03:24:29)
- grewingh
-
17 posts
I think Scratch is broken (or i'm just dumb)
Ye, the code is pretty messy tho, just warning. To trigger the boss battle, when you die, click the death screen.
https://scratch.mit.edu/projects/1116358578/
https://scratch.mit.edu/projects/1116358578/
- grewingh
-
17 posts
I think Scratch is broken (or i'm just dumb)
Last edited by grewingh (Jan. 7, 2025 03:39:57)
- l_heart_Roblox
-
100+ posts
I think Scratch is broken (or i'm just dumb)
I assume the sprites titled broken thing are the things not working?
- grewingh
-
17 posts
I think Scratch is broken (or i'm just dumb)
I dont have any sprites named broken things as far as I know
- l_heart_Roblox
-
100+ posts
I think Scratch is broken (or i'm just dumb)
My bad, it is broken epics 1 2 3 :p I didn't click them. So, what sprite do you need help fixing with?
Last edited by l_heart_Roblox (Jan. 7, 2025 03:53:16)
- grewingh
-
17 posts
I think Scratch is broken (or i'm just dumb)
The last 2 sprites. Also, again, I don't think I have anything called broken epics 1 2 3 (am I going crazy?)
- grewingh
-
17 posts
I think Scratch is broken (or i'm just dumb)
OHHH! No, those are just effects that spin around and look cool, so it looks like the game's broken lol
- l_heart_Roblox
-
100+ posts
I think Scratch is broken (or i'm just dumb)
Okay. I'll see what I can do.
- l_heart_Roblox
-
100+ posts
I think Scratch is broken (or i'm just dumb)
I finished! What I did was
This is the code you put but I added go to front layer. and create clone.
This is the code you put but I added go to front layer. and create clone.
Last edited by l_heart_Roblox (Jan. 7, 2025 04:11:01)
- l_heart_Roblox
-
100+ posts
I think Scratch is broken (or i'm just dumb)
I also did
when I start as a clone
hide
go to front layer
and repeated the whole thing.
IDK why my scratchblocks stopped working. The clones stuff wasn't there.
when I start as a clone
hide
go to front layer
and repeated the whole thing.
IDK why my scratchblocks stopped working. The clones stuff wasn't there.
Last edited by l_heart_Roblox (Jan. 7, 2025 04:14:00)
- Discussion Forums
- » Help with Scripts
-
» I think Scratch is broken (or i'm just dumb)