generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Ping

Previous Thread :: Next Thread 
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
29 Nov 2015 11:43 PM
How do you check for your ping?
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
30 Nov 2015 01:14 AM
remoteevents/remotefunctions
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2015 02:05 AM
Get tick
Invoke a blank Remote function
Get tick
Tick diff is your ping
Report Abuse
76km is not online. 76km
Joined: 14 Aug 2015
Total Posts: 5455
30 Nov 2015 02:25 AM
Wait wait...

but tick has nothing to do with ping?

It has some relevance to 1970 doesn't it?

I probably don't know what i'm talking about
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
30 Nov 2015 02:34 AM
Yes, you get the time it started and ended with tick, then substract. Other methods like workspace may be glitchy. You could probably also use os.time()
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
30 Nov 2015 06:00 PM
Wait so do I do firsttick - secondtick or do I do second - first.
Also, when I did it, the numbers were like between 0 and 1.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2015 06:03 PM
Second - first
Also they should be less than 1 because that's how many seconds. Multiply by 1000 to get your ms ping
Report Abuse
CptJones is not online. CptJones
Joined: 15 Apr 2009
Total Posts: 85
30 Nov 2015 06:03 PM
Shift + F5 will show ping and FPS, and lots off other data
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
30 Nov 2015 06:05 PM
Here is my script. I'm getting numbers like 0.05

while true do
local firsttick = tick()
game.Workspace.GetPing:InvokeServer()
local secondtick = tick()
script.Parent.Text = "Ping: "..(secondtick-firsttick) * 1000
wait(0.91)
end
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2015 06:06 PM
Is this in Studio or in a game hosted by Roblox?
Report Abuse
Crazy010517 is not online. Crazy010517
Joined: 17 Sep 2011
Total Posts: 1161
30 Nov 2015 06:07 PM
Studio
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
30 Nov 2015 06:12 PM
Don't be stupid of course you have like 0 ping in Studio you're not even connecting across a local network let alone from a different device on a different network across the Internet.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image