Scxiptifyz
(Scxiptifyz)
#1
Hello!
I recently made a post about an error i had when breaking a loop
However, since i removed it. when i cancel the purchase. it repeatedly prompts me, here is the code:
Where the red arrow on the following image is is where this code is supposed to go:
if IsAutoHatching == false then
break
end
when i add this though, the IsAutoHatching == false gets underlined in orange
Please help!
-ScxiptedShark
1 Like
Its because the elseif statement is inside loop, try doing check of gamepass before loop
2 Likes
Scxiptifyz
(Scxiptifyz)
#3
Like this but replace elseif with if?
Probably, but also remove second condition in original if statement
Scxiptifyz
(Scxiptifyz)
#5
What do you mean by second condition?
Also this doesn’t work as the result needs to loop and if i place the elseif outside of the loop , it wont detect the result
I cant explain more detaily, im from my phone right now
1 Like