Script not proceeding after Pcall function

i AM A PROGARMMER ALRIGHT,jUST THAT THE RANK SAYS THIS


oK tHIS IS HOW U USE PCALL()

u SHOULD PROBABLY SEE MY GAME(CAUSE I DONT KNOW)

Game Link: (Insane Chaos) Morphing feature when u died - Roblox

That’s how I’m using it. Instead, I’m using it to debug my script if it shows up an error, using warn.

U dont use that to debug??? use PRINT()

best is remove the successs because i tried it before and that function keeps looping through

the pcallfunction is for whether the script is working or not

but it IS NOT FOR DEBUGGING

EASIER DEBUGGING IS THIS

PRINT(“”)

PCALL IS HARDER TO DEBUG.IT CAN BUT TRY TO USE THE EASIER ONE BECAUSE IT WONT AFFECT THE CODE

PCALL IS USUALLY FOR DATASTORES BECAUSE DATASTORES ARE UNRELIABLE

you can use pcall() to debug. Pcall is often used for error handling, including debugging. You can run pcall functions to execute codes that potentially produce errors. You can inspect errors, execute codes that can produce errors, but still run, and also testing.

It doesn’t seem to serve a debugging purpose as pairs() is specified without a table, and a print is printed without any text inside. You’re not checking any errors.

tHAT IS A FORMAT.This is just an example,I wont show u the whole thing

if you are going to give me an example, try to share a decent one. We are not reaching anywhere with this whole discussion.

Solution: Use print() instead of looping the success

No, that’s not the solution. I already tried removing the pcall, and it is still not working. The problem is probably within the bindable function script.

U didnt send the bindable function script bruh…

remove the return

for bindable function and write this instead

local result = bindablefunction:Invoke(nome, roll)

if result == (true or false) then
continue
end

the bindablefunction is apparently not even firing.

That is the problem,Why you didnt realise it

I realized that. The point is that I’m invoking it.

return doenst invoke it

it just gives the value

You have no idea what you are talking about, buddy

I think u just follow this way because this will work

local result = bindablefunction:Invoke(nome, roll)

if result == (true or false) then
continue
end

I already removed pcall, and it is still not firing.

Equip_or_Leave.OnInvoke = function(nome, roll) -- not firing

--Other local script

local err = bindablefunction:Invoke(nome, roll)

something interesting is that it fires if I put OnInvoke on the same script:

bindablefunction.OnInvoke = function(name, roll) --fires and the script runs as normal
	print("a")
end