RemoteFunction is "Unable to Cast Value to Object"?
I've got a ModuleScript that has a dictionary being sent to the script causing the error. I'm pretty sure it's something with it but I can't tell at this point, I'm baffled.
Relevant parts of the ServerScript.
01 | local Config = require(game:GetService( "ReplicatedStorage" ).Configuration.Config) |
03 | local Dictionary = Config.MultiDictionary() |
04 | for _,i in pairs (Dictionary) do |
05 | local Answer = game.ReplicatedStorage.Question:InvokeClient(i) |
06 | repeat wait() until Answer |
07 | table.insert(Answers,#Answers+ 1 ,Answer) |
Here are the parts of the ModuleScript.
01 | local MultiQuestions = { |
02 | Q 1 = { "Please select your choice." , "A" , "B" , "C" } |
06 | function module.GetSize() |
08 | for _,_ in pairs (MultiQuestions) do |
14 | function module.MultiDictionary() |
16 | for i,v in pairs (MultiQuestions) do |
17 | table.insert(Question,#Question+ 1 ,v) |
My main goal (is to blow up, and then act like I don't know nobody) is to have all values placed in a table and sent to a LocalScript with a RemoteFunction.
Error: Unable to cast value to Object - Line 5 (ServerScript)