FerbZides
(FerbZides)
February 18, 2021, 4:59am
#1
if this is my code for a remote function
someRemoteFunction.OnServerInvoke = function(Player)
return {
Condition = false
}
end
and if I invoke it like that
would it be like
local tbl = someRemoteFunction:InvokeServer()
tbl.Condition = false
I recommend checking the official roblox wiki, DevHub | Roblox They provide examples, and how to properly use it. Next time, before posting check the dev hub, and if you don’t get an answer there/have a question feel free to ask here.
FerbZides
(FerbZides)
February 18, 2021, 5:04am
#3
there is nothing on the devhub that returns a table as an example, can you tell me if its true?
desinied
(desinied)
February 18, 2021, 5:19am
#4
Yes, you can return a table of values and you can treat them as a regular dictionary / array with index.
2 Likes
FerbZides
(FerbZides)
February 18, 2021, 5:21am
#5
so its just the regular old
sentInvokeVariable.Something
Your trying to change something on the client that is stored on the server, this will not work.
desinied
(desinied)
February 18, 2021, 5:21am
#7
Yep, just make sure to index from the actual variable that has :InvokeServer()
in it and not the object itself.
1 Like