As the title says, my script is not running right after my Pcall function. The part of the script that occurs it:
local v_Ativado = function(v, tween1, tween2, Heartbeat, rollframeclone, roll)
local nome = v.Name
local success, err = pcall(function()
return bindablefunction:Invoke(nome, roll)
end)
Sucesso_ou_error(success, err, 'Erro foi encontrado ao invokar "bindablefunction": ','Nenhum erro foi encontrado ao invokar "bindablefunction": ')
local escolhido = rollframeclone[t[not err]]
local nomeescolhido = tostring(escolhido)
local deletadoescolhido = WaitFor(rollframeclone, nomeescolhido)
v.Active = false
for numero = 0, 1, 0.1 do
Heartbeat:Wait()
deletadoescolhido.TextTransparency = numero
end
coroutine.wrap(function()
while Heartbeat:Wait() do
task.wait(0.3)
v.TextColor3 = Color3.new(1, 1, 0.411765)
task.wait(0.3)
v.TextColor3 = Color3.new(255,255,255)
end
end)()
Destroy_Instance(deletadoescolhido)
Tween_Audio_Play(tween1)
Completed(tween1, Tween_Audio_Play, tween2)
end
I already tried printing “nome”, “roll”, “bindablefunction”, and it shows up correct, though right after the “return”, the script doesn’t proceed to the “Successo_ou_error” which is the if statement to check if the pcall function is alright or not:
erro_ou_succeso = function(succ, err, aviso, sucesso)
if not succ then
return warn(aviso.. err)
else
return print(sucesso.. tostring(succ))
end
end,
I already tried debugging the code, and again, it stopped running after the “return”. What is the problem here?