external7772 Posted January 2, 2022 Share Posted January 2, 2022 Hello guys. I want to make '''easy'' protection of my script with this function: if gg.isVisible(true) then gg.clearResults() os.exit() print("ᴅᴏɴ'ᴛ ᴛʀʏ ᴛᴏ ᴄʜᴇᴄᴋ ᴍʏ ᴄᴏᴅᴇs. ᴜsᴇ sᴄʀɪᴘᴛ ᴀs ᴜsᴜᴀʟ ᴀɴᴅ ᴅᴏ ɴᴏᴛ ᴛʀʏ ᴛᴏ ᴅᴇᴄᴏᴍᴘɪʟᴇ ᴏʀ ʟᴏɢ ᴍʏ ᴡᴏʀᴋ...") end How to make this how do I make this thing always run and check this condition always? Link to comment Share on other sites More sharing options...
AKidWithMidgetFriend Posted January 2, 2022 Share Posted January 2, 2022 2 hours ago, external7772 said: Hello guys. I want to make '''easy'' protection of my script with this function: if gg.isVisible(true) then gg.clearResults() os.exit() print("ᴅᴏɴ'ᴛ ᴛʀʏ ᴛᴏ ᴄʜᴇᴄᴋ ᴍʏ ᴄᴏᴅᴇs. ᴜsᴇ sᴄʀɪᴘᴛ ᴀs ᴜsᴜᴀʟ ᴀɴᴅ ᴅᴏ ɴᴏᴛ ᴛʀʏ ᴛᴏ ᴅᴇᴄᴏᴍᴘɪʟᴇ ᴏʀ ʟᴏɢ ᴍʏ ᴡᴏʀᴋ...") end How to make this how do I make this thing always run and check this condition always? A loop, try something like While gg.isVisible() == true do if gg.isVisible(true) then gg.clearResults() os.exit() print("loop broken!") end end Link to comment Share on other sites More sharing options...
HEROGAMEOfficial Posted January 2, 2022 Share Posted January 2, 2022 7 hours ago, AKidWithMidgetFriend said: A loop, try something like While gg.isVisible() == true do if gg.isVisible(true) then gg.clearResults() os.exit() print("loop broken!") end end Come make simple (don't share bad code): while gg.isVisible() do print ("Script ended") os.exit()--or use return --return end Link to comment Share on other sites More sharing options...
Question
external7772
Hello guys. I want to make '''easy'' protection of my script with this function:
How to make this how do I make this thing always run and check this condition always?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.