Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

return value.property? Idk rip

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?

2 comments

0

We do not know what callbanned or get result or show mod call banned is...

0

No need to. It are variable names.

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.