Does disabling a script remove connections?

Does disabling a script remove connections?

If you’re talking about the Disabled property: I believe it disables any new connections that might get fired inside the script; any old ones that are still firing inside will still be finished afterwards, but you won’t be able to fire new ones

1 Like

Yes, so it disconnects the function completely?
After being disabled.

I believe so

function RandomThing()
    print("Yes")
    wait(1)
    print("Maybe")
    wait(3)
    print("Ok wait maybe not")
end

RandomThing()

workspace.BoolValue.Changed:Connect(function()
    RandomThing()
end)

You could try this inside Studio and see if it’ll detect changes with the script being either Enabled or Disabled, I’m just assuming at this point