:FireClient and :FireServer missing field 0 of a table

Image:
Image

Game file:
BugReport.rbxl (46.1 KB)

Expected behavior

:FireServer and :FireClient when called with table { [0] = “something” }
field 0 will be sent to client

3 Likes

The described behaviour is actually one of the known argument limitations of remotes described in the article on Creator Hub: Remote Events and Callbacks | Documentation - Roblox Creator Hub.

  • If the passed table is a standard lua array (sequential, ordered, starting with index 1), then the recipient will receive it with numerical indices kept intact.

  • If the passed table is a dictionary (key-value pairs), then the received keys will be strings, and any other replicable types will be converted into strings.

Printing tbl in the output shows a table with the 0 converted.

{
    ["0"] = "Hello World!"
}
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.