Now this isn't exactly via remotefunctions, I use it because I think its easy.
let each player have its own unique string value (you could name the value the players name for easy access.)
let server will frequently update this string value's value with the players data.
let the client get the value and turn it into a table, from there just find what you're looking for.
I suggest you use httpservice for setting the value and getting it.
(example for setting data: stringval.Value = httpserv:JSONEncode(playerdata))
(example for getting data: local playerdata = httpserv:JSONDecode(stringval.Value))
This is just my preferred method, I've never really gotten data using remote functions. |