It will be the same thing. Implementing various returns won’t make the function recursive. Instead, I’m calling return because I need to return the value of the bindable function to the protective function. Additionally, I already tried removing the return before, and still nothing, as it makes no sense removing it.
Sorry to tell u this
Pcallfunctions is also a loop.so u need to
can u show me the entire script,I am also confused
ENITRE SCRIPT DONT SEPEARTE INTO CHUNKS BECAUSE IT IS HARD TO UNDERSTAND
False. The return statement is used to exit the current function and return one or more values (tuple) to the caller. Here, it’s inside an anonymous function that’s being passed to the protective call.
In other words, success will be a boolean value if the function worked or not, and the err will be the err occurred, if none, the bindable function return.
I think you probably should learn more about that. I see you are not a programmer, so I don’t think you could resolve my problem here. I appreciate the help.
Pcall function is not a loop:
ENITRE SCRIPT DONT SEPEARTE INTO CHUNKS BECAUSE IT IS HARD TO UNDERSTAND
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