Question regarding :InvokeClient

Hey, so I just thought of this. If I call :InvokeClient on the server, but the client it fires to leaves the game before it’s able to return a value, what will happen server-sided? Will an infinite yield be present??

Thanks.

I believe that bug was fixed but either way there is no reason to use :InvokeClient. An exploiter can leave you hanging if they have something like this, for example:

function remote.OnClientInvoke()
    while true do
        wait(n)
    end
end

Which leaves the server hanging. If you need data from the client use :FireServer.

3 Likes

IIRC it will error with something like “Player Name disconnected during remote call to RemoteName”. Other than that, do what incapaz said ^^

1 Like