I am currently getting this error keys must be strings
from
for _,plr in pairs(arena.players) do local playerTable = client.getPlayerTable(p); locations.re.played:FireClient(plr.player, playerTable, tonumber(position), card); end
Why could this happen? plr.player is the player userdata playerTable is just information about the player position is a number card is another table about a card
client.getPlayerTable(p);
function client.getPlayerTable(p) local playerTable = { player = p.player; health = p.health; name = p.name; userId = p.userId; Board = p.Board; Avatar = p.Avatar; field = p.field; }; return playerTable; end
player is just the player object health is a number name is name of the player object userid is the player's userid board is just a string identifying the board same with avatar field is a table of cards in the player's field
Cannot send functions through RemoteEvents :P
Locked by BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?