Hi. There you have a converter which can change data to string to sending with packets.
http://pastebin.com/nNc8ar1s
http://pastebin.com/nNc8ar1s
Copy to client-side and server-side
Types supported:
- Integer
- Float
- Boolean
- String
- Table
- Array
- Instance (if have method toPacket() which return table)
When you send packet, use function:
Code:
convertToPacket(data)
And when you get packet, use function:
Code:
receiveFromPacket(packetData)