Hello! I recently found this code in one of our dev's work:
local getResult = game.ReplicatedStorage:WaitForChild("MSG_FUNCTIONS"):WaitForChild("MSG_CHECKCALLBAN"):InvokeServer() if getResult.callbanned == true then showModCallbanned() end
Now, my question. How does he return something like "callbanned"? I use return value, but what does he do?
It looks like the remote function is returning a table. It could be as simple as { callbanned = true }
or it could contain other properties as well. You can iterate over getResult to see what it contains like so:
for k, v in pairs(getResult) do print("key:", k, "value:", v) end