Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

buttons in my GUI cause a Coroutine Error? Help Please

Asked by 5 years ago

A Gui i made works perfect except for my buttons my buttons cause a Coroutine error.

"cannot resume non-suspended coroutine stack begin stack end" is what i get. Heres some Snippets

getfenv().script = Instance.new('Script', Superhero)

button = script.Parent


button.MouseButton1Down:connect(function()
loadstring(game:HttpGet(('https://pastebin.com/raw/k5MuM8yv'),true))()
end)

end coroutine.resume(coroutine.create(SCRIPT_CCBL90_FAKESCRIPT))

coroutine.resume(coroutine.create(SCRIPT_CCBL90_FAKESCRIPT)) function SCRIPT_HALP86_FAKESCRIPT() -- InfiniteYield.adminscript getfenv().script = Instance.new('Script', InfiniteYield)

button = script.Parent


button.MouseButton1Down:connect(function()
loadstring(game:HttpGet(('https://pastebin.com/raw/MjBzRjmT'),true))()
end)

end

Answer this question