|
anyone help with a script that displays everyones ping on the leaderboard cause i saw someone use it and its really useful |
|
XxErik9xXJoin Date: 2014-12-31 Post Count: 87 |
ping? |
|
|
send a packet and see how long it takes for it to get a response from server |
|
|
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
RemoteEvent. |
|
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
Look it up on the wiki. |
|
|
chimmihcJoin Date: 2014-09-01 Post Count: 17143 |
***
You actually want a RemoteFunction, sorry I just woke up. |
|
|
yea theres a shared wiki if i need anymore help ill pm u |
|
|
invoke a remote function and measure the time it takes |
|
|
what can u use to measure time? |
|
nixpcJoin Date: 2012-02-05 Post Count: 15425 |
local a = tick()
-- send something to the server using remotefunctions
local b = tick()
local c = b-a
print("It took " .. c .. " milliseconds")
|
|
|
|
if i put it in a leaderboard stat shall i do that in a while player is in server wait 3 then do it |
|