#Remote event in an if.
14 messages · Page 1 of 1 (latest)
why tho
cuz when i do function in a loop to break it, it says break statement must be in a loop
in the function where you recieve the remote event, you could store the boolean in a variable and check if that variable is true.
oh yeah
that could work
Wdym
i dont even know lol
no, please explain
i think you have misunderstood something about the 'break' keyword
im using a for loop, which i copy and pasted from the web, i'm making it so that when an event is fired the loop is activated and if another event is fired the loop is broken but when i put the remotevent function inside the loop it gives me an error and says break statement must be in a loop (i have no idea how for loops function :/ so i'm just trying to make something out of it)
okay i did this and it worked
thx a lot
