So if the bool value turns off again the code will not execute.
COMMUNITY QUESTION
How to make a code run only WHILE a bool value is on true?
1 answer
It's pretty simple. You would just use Bool value = true/ false. When it's executed, use the IF statement.
if Example.Value then
-- Fire whatever you have. I wouldn't recommend using while true do though.
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
while bool == true do
if bool == true do print('running') else print('not running') end
OMG U ARE A LEGEND Y DIDNT I THINK OF THAT
Lol, its as simple as that