of     1   

leSovereign
#228135302Monday, November 27, 2017 4:42 AM GMT

How do I send data from a DataStore [Server to client] via..Remote Functions Basically I have a local script requesting a value from the server.
NodaDuck45
#228135509Monday, November 27, 2017 4:49 AM GMT

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.
soutenu
#228135628Monday, November 27, 2017 4:53 AM GMT

^ yeah...let's just expose a player's data so anyone can see it
bowypenguino
#228135729Monday, November 27, 2017 4:56 AM GMT

remote event
NodaDuck45
#228135760Monday, November 27, 2017 4:56 AM GMT

I don't really see why it matters, the player data should be updated by the server anyways, anything sent to the server with events should be checked on the server anyways. I don't see why that would be a problem.
nofascistsaloudxD
#228136706Monday, November 27, 2017 5:36 AM GMT

----[[ClientSide:]]----- RemoteEvent:FireServer(Data) ----[[ServerSide:]]----- RemoteEvent.OnServerEvent:Connect(function(player, Data) [Code involving tuple arguments (player and data)] end)
leSovereign
#228159761Monday, November 27, 2017 9:57 PM GMT


    of     1