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: Detect Laggy Players

Previous Thread :: Next Thread 
TheSquirrel is not online. TheSquirrel
Joined: 23 Aug 2008
Total Posts: 5557
13 May 2010 01:05 PM
Is there any way to detect whether a player is lagging your server, and then take appropriate actions.
Report Abuse
nickguletskii200 is not online. nickguletskii200
Joined: 06 Oct 2008
Total Posts: 14154
13 May 2010 01:08 PM
FPS? Easy.
Report Abuse
TheSquirrel is not online. TheSquirrel
Joined: 23 Aug 2008
Total Posts: 5557
13 May 2010 01:30 PM
That would detect laggy games, not laggy players.
Report Abuse
nickguletskii200 is not online. nickguletskii200
Joined: 06 Oct 2008
Total Posts: 14154
13 May 2010 01:31 PM
FPS on laggy computers. Local scripts.
Report Abuse
Ashispro97 is not online. Ashispro97
Joined: 11 Oct 2008
Total Posts: 5147
13 May 2010 01:45 PM
How's a first person shooter gonna help?

Joke. ;)

Yeah, using an FPS checker, it should work...
Report Abuse
BlueTaslem is not online. BlueTaslem
Joined: 11 May 2008
Total Posts: 11060
13 May 2010 01:59 PM
FPS per local script would measure how well they're doing, but kicking them is not a solution.
Removing pieces of their physics would fix it though.
Report Abuse
Havemeat is not online. Havemeat
Joined: 08 Jan 2008
Total Posts: 18081
13 May 2010 02:34 PM
Making the entire game local, then include details based on there fps.
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
13 May 2010 02:46 PM
Make IntValues in the workspace (or some other place) and have a LocalScript in everyones backpack. Use that to get each FPS number and then store it in the next empty Int. Use math.min() to find the lowest.
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
13 May 2010 05:12 PM
fps ~= (lag or ping)
Report Abuse
TheSquirrel is not online. TheSquirrel
Joined: 23 Aug 2008
Total Posts: 5557
13 May 2010 05:25 PM
That's it! Why didn't I think of just pinging the server.

So is this possible?

In Server side script:

Player.PackageReceiver.ChildAdded:connect(function (Package)
local time = tick()
local Ping = tick() - Package.Value
if Ping > 0.5 then
Player:Remove()
else
Package:Remove()
end
end)

In local side script:

function Ping()
local Package = Instance.new("NumberValue")
Package.Value = tick()
Package.Parent = Player.PackageReceiver
end
Report Abuse
TheSquirrel is not online. TheSquirrel
Joined: 23 Aug 2008
Total Posts: 5557
13 May 2010 05:26 PM
Warning: Unused local variable 'time': Server side script : Line 2

I hate it when that happens.
Report Abuse
drummerp is not online. drummerp
Joined: 10 Jan 2009
Total Posts: 4892
13 May 2010 06:41 PM
You actually have an IDE/compiler/interpreter/whatever that does warnings as well as errors?
Report Abuse
TheSquirrel is not online. TheSquirrel
Joined: 23 Aug 2008
Total Posts: 5557
13 May 2010 08:18 PM
Not in Lua, but in other languages.

I should find a better Lua Editor than the Roblox flavour. Problem is, I'm used to Lua looking like it does on Roblox, so I find it hard to change.
Report Abuse
cats247 is not online. cats247
Joined: 04 Jul 2009
Total Posts: 1424
13 May 2010 09:21 PM
Universe Stick FTW! Anyways, I havent seen you post in a long time! Welcome back!
Report Abuse
wiiplay is not online. wiiplay
Joined: 28 May 2008
Total Posts: 17801
14 May 2010 08:50 AM
O_O HOW DO YOU MAKE A SERVER-SIE SCRIPT!!! TELL ME!
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
14 May 2010 08:59 AM
Instance.new("Script")
Report Abuse
MrBlockson is not online. MrBlockson
Joined: 31 Aug 2008
Total Posts: 14276
14 May 2010 09:38 AM
One person lagging will make other people lag too. The game runs at the speed of the slowest client. any network is like this.

Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
14 May 2010 09:39 AM
By lag do you mean ping, fps or cpu/physics?
Report Abuse
MrBlockson is not online. MrBlockson
Joined: 31 Aug 2008
Total Posts: 14276
14 May 2010 09:40 AM
Any of them will slow ALL players...
Report Abuse
Brandonhare is not online. Brandonhare
Joined: 02 May 2007
Total Posts: 11005
14 May 2010 09:43 AM
Well how come I can stand on a laggy player's head who spends 20 seconds in the air from one jump?
Report Abuse
gama2xo is not online. gama2xo
Joined: 20 Feb 2016
Total Posts: 10039
14 May 2010 10:24 AM
check fps/ping
Report Abuse
MrBlockson is not online. MrBlockson
Joined: 31 Aug 2008
Total Posts: 14276
14 May 2010 10:39 AM
http://www.roblox.com/Game-Pane-v1-6-Autoenter-item?id=26844018
Report Abuse
wiiplay is not online. wiiplay
Joined: 28 May 2008
Total Posts: 17801
14 May 2010 11:21 AM
How did you get it to say "Server-Side Script" then? :o Is it a hidden thing? :D
Report Abuse
Wyoming is not online. Wyoming
Joined: 05 Feb 2008
Total Posts: 8453
14 May 2010 11:22 AM
It doesn't dude...

A normal script IS a server side script. Think about it. If it isn't a LOCALScript then where could it just possibly run...
Report Abuse
Akartas is not online. Akartas
Joined: 08 Jul 2009
Total Posts: 2771
14 May 2010 02:49 PM
Hmm.

All I know is how to get the server FPS, not the clientside. :\
print(wait())
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