Jump to content
  • 0

Function in every point of script


external7772

Question

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

2 answers to this question

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.