Post by delta on Jul 11, 2020 1:04:41 GMT
Debugging script I'm using, runs once that's it, I thought ankulua automatically loops scripts?
----- ?? ------
immersive = true
setImmersiveMode(immersive)
setAutoGameArea = true
pcall (autoGameArea, setAutoGameArea)
scriptDimension = 2220
Settings:setScriptDimension(true, scriptDimension)
Settings:setCompareDimension(true, scriptDimension)
function getLobby()
print("Joining Lobby")
if(existsClick("LobbyPlayButton.png")) then
return true
else
return false
end
end
function getReady()
print("Trying to find Ready button")
if(existsClick("ReadyUP.png")) then
return true
else
return false
end
end
function getNetwork()
print("Disconnected")
if(existsClick("continue.png")) then
return true
else
return false
end
end
if getLobby() then
print("it worked")
toast("Lobby play button found")
else
print("getLobby() is false")
toast("Lobby play button not found")
end
if getReady() then
print("it worked")
toast("Ready Button found")
else
print("getReady() is false")
toast("Ready button not found")
end
if getNetwork() then
print("it worked")
toast("Network Disconnected found")
else
print("getNetwork() is false")
toast("Network Disconnected not found")
end
local lobby = getLobby()
local ready = getReady()
local network = getNetwork()
while true do
if lobby then
if(existsClick("LobbyPlayButton.png")) then
toast("Searching Play...")
break
end
end
end
while true do
if ready then
if(existsClick("ReadyUP.png")) then
toast("Searching Ready...")
break
end
end
end
while true do
if network then
if(existsClick("continue.png")) then
toast("Searching Network...")
break
end
end
end