Jump to content
  • 0

Question

Posted

So I'm using threads and some how it doesn't work?

 

local detect_thread = coroutine.create(function()

        while detectionOn do

            if gg.isVisible(true) then

                local stop = gg.alert("⚠️ Stop Detection?", "Yes", "No")

                if stop == 1 then

                    detectionOn = false

                    gg.toast("Detection stopped.")

                    break

                else

                    gg.setVisible(false)

                end

            end

 

local detect_thread = coroutine.create(function()`

attempt to index ? (a nil value) with key 'create' (global 'coroutine')

level = 1, const = 7, proto = 1, upval = 5, vars = 3, code = 23

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.