LuaLlama
|
  |
| Joined: 25 Jan 2014 |
| Total Posts: 1123 |
|
|
| 09 Jan 2016 03:08 PM |
| How is this possible scripting-wise? I want to use this in a project i'm working on that if you have a high ping, it tries to make the game accommodate it to give you the best experience possible. |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2016 03:10 PM |
| Fire a RemoteFunction and see how long it takes to get a response back. |
|
|
| Report Abuse |
|
|
LuaLlama
|
  |
| Joined: 25 Jan 2014 |
| Total Posts: 1123 |
|
|
| 09 Jan 2016 03:13 PM |
How would I do that exactly?
I know how to fire remote functions, but how would I measure the time in milliseconds to get a response? |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2016 03:15 PM |
I dont think so but if your game has problems with lag try going here http://roblox.wikia.com/wiki/Lag and http://wiki.roblox.com/index.php?title=Performance |
|
|
| Report Abuse |
|
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 09 Jan 2016 03:18 PM |
local b4 = tick() rf:InvokeServer() print(tick()-b4)
..right |
|
|
| Report Abuse |
|
|
LuaLlama
|
  |
| Joined: 25 Jan 2014 |
| Total Posts: 1123 |
|
|
| 09 Jan 2016 03:18 PM |
| i'm fine lag-wise, It's just a little project for fun. |
|
|
| Report Abuse |
|
|
LuaLlama
|
  |
| Joined: 25 Jan 2014 |
| Total Posts: 1123 |
|
| |
|