Jump to content
  • 0

My script ends everytime i click the button...


ToxicLuaMods23

Question

Hi , i have this problem with my scripts everytime i make them, i am ussually an offline user who likes GG and i think in still a noob at it 

my problem is that every script i make it keeps ending i name and call the functions correctly, i make sure to put nil inside and other 

if there are no coding errors in my script (gg notifys if u do) and it reads scripts top to bottom then what could be my problem?

--functions
function ita()
gg.alert('You must have 5 of each item for it to work')
gg.searchNumber(5, gg.TYPE_DWORD)
gg.getResults(20000)
gg.editAll(64, gg.TYPE_DWORD)
gg.clearResults()
gg.toast('script made by TOXIC MODS')
end
function flo()
gg.searchNumber(40, gg.TYPE_FLOAT)
gg.getResults(20000)
gg.editAll(950, gg.TYPE_FLOAT)
gg.clearResults()
gg.toast('Script made by TOXIC MODS')
end
function spe()
gg.toast('GOO FAST')
gg.setSpeed(20)
end
function exi()
gg.toast('Bye noob LOL')
os.exit()
end
function abt()
gg.alert('Script made by Repl.it learn how to make scripts by joining My discord server')
menu=gg.choice({'Items hack','Jump Hack','Speed','Exit',nil,'About script'})
if menu==1 then
ita()
end
if menu==2 then
flo()
end
if menu==3 then
spe()
end
if menu==4 then
exi()
end
if menu==nil then
exi()
end
if menu==6 then
abt()
end

it worked once what happpened twice?, Also it crashes im using parrelel space but i had to hard reset my device the last parrelel i was using was ps light my exit function works well also and there is no anti cheat in the game if i mannually changed the wood into 64 -Tox mods

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

function abt()
gg.alert('Script made by Repl.it learn how to make scripts by joining My discord server')
menu=gg.choice
({"Items hack",
   "Jump Hack",
   "Speed",
   "Exit"},nil,"Bla bla bla")
     if menu==nil then else
     if menu==1 then ita() end
     if menu==2 then flo() end
     if menu==3 then spe() end
     if menu==4 then exi() end
     end
htu=-1
end

function ita()
gg.alert('You must have 5 of each item for it to work')
gg.searchNumber(5, gg.TYPE_DWORD)
gg.getResults(20000)
gg.editAll(64, gg.TYPE_DWORD)
gg.clearResults()
gg.toast('script made by TOXIC MODS')
end

function flo()
gg.searchNumber(40, gg.TYPE_FLOAT)
gg.getResults(20000)
gg.editAll(950, gg.TYPE_FLOAT)
gg.clearResults()
gg.toast('Script made by TOXIC MODS')
end

function spe()
gg.toast('GOO FAST')
gg.setSpeed(20)
end


function exi()
gg.toast('Bye noob LOL')
os.exit()
end

while(true)do
if gg.isVisible(true) then
htu=1
gg.setVisible(false)
end
gg.clearResults()
if htu==1 then
abt()
end
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.