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: NetworkServer

Previous Thread :: Next Thread 
BlueMond is not online. BlueMond
Joined: 26 Dec 2007
Total Posts: 47
01 Jul 2013 09:18 PM
I've done some testing with the NetworkServer which can be returned by using game:GetService("NetworkServer"). Every player's connection is stored under it using a NetworkReplicator object and I was wondering if there is anything you can do with this service. I've already tried deleting a connection but the Service is locked so that wasn't possible. (Btw it can only be accessed when in a live server)
Report Abuse
Gavin12 is not online. Gavin12
Joined: 01 Apr 2008
Total Posts: 1910
02 Jul 2013 12:06 AM
NetworkReplicator:GetPlayer() --Returns the connected player. ^,^
Report Abuse
BlueMond is not online. BlueMond
Joined: 26 Dec 2007
Total Posts: 47
02 Jul 2013 12:09 AM
Well I know that but is there really anything you can do with it besides that?
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
02 Jul 2013 12:16 AM
http://wiki.roblox.com/index.php/NetworkReplicator
http://wiki.roblox.com/index.php/CloseConnection_(Method)

You can disconnect the client.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
02 Jul 2013 12:17 AM
Never mind, it's a locked method.
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
02 Jul 2013 12:33 AM
    repeat wait() until serverStarted;
    game:service("NetworkServer").IncommingConnection:connect(function(peer, rep)
        if isBannedIP(rep) or (rep:GetPlayer() and isBannedPlayer(rep:GetPlayer().Name)) then
            rep:CloseConnection();
        end
        _G.ServerUtilities.ClientsConnected=game:service("NetworkServer"):GetClientCount();
    end)

It may be locked but I still used it
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
02 Jul 2013 12:34 AM
^ from https://github.com/blocco/RBXPri-Legacy-Code/blob/master/rpui/server.lua
Report Abuse
shayan414 is not online. shayan414
Joined: 11 Aug 2008
Total Posts: 8090
02 Jul 2013 03:18 AM
@Cody

Of course its a locked method, imagine how many admin scripts would use that method against its prestigious powers. I can only imagine how much users would abuse that.

Report Abuse
shayan414 is not online. shayan414
Joined: 11 Aug 2008
Total Posts: 8090
02 Jul 2013 03:19 AM
@blocco

Ah nice, some of your RBXPri code.
Report Abuse
mew903 is not online. mew903
Joined: 03 Aug 2008
Total Posts: 22071
02 Jul 2013 03:31 AM
@Blocco I've been looking around the web for ages for that code! I had it on my pc before but idk where it went.
Report Abuse
BlueMond is not online. BlueMond
Joined: 26 Dec 2007
Total Posts: 47
02 Jul 2013 10:59 AM
Nice script blocco
Report Abuse
BlueMond is not online. BlueMond
Joined: 26 Dec 2007
Total Posts: 47
02 Jul 2013 11:02 AM
But yes I checked the wiki and the event is protected (locked)
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
02 Jul 2013 11:03 AM
@blocco I'm pretty sure Incommingconnection was locked.
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
02 Jul 2013 11:40 AM
the old rbxpri used level 7.
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