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 » Scripting Helpers
Home Search
 

Re: Disconnecting Nil Players from the game help.

Previous Thread :: Next Thread 
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
31 Dec 2013 11:12 PM
for i,v in pairs(game.NetworkServer:GetChildren())do
if not game.Players:FindFirstChild(v:GetPlayer().Name)then
--I have no idea how to crash the nil player...
end
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
31 Dec 2013 11:36 PM
No.
And you can't without elevated server-sided scripting or crashing them by inserting a local script in their character if they are using one
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
31 Dec 2013 11:49 PM
@cnt So if somebody was using a stupid orb I could crash them with a localscript in their orb :D ?

Well if they set it as their character...
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
31 Dec 2013 11:52 PM
Sort of, or you could just spam gear in their backpack which seems to do a very good job at creating lag
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
31 Dec 2013 11:58 PM
Isn't there some new method that's something like

player:Kick();

and then it makes them have the 'You have lost connection to the game' screen?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:00 AM
But how can you use it if the player is nil....

Lik dis?

Game.Players:GetMeNilPlayers():Kick()
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Jan 2014 12:01 AM
You can't when their player is nil (or at least not last month)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Jan 2014 12:01 AM
@not, NetworkServer
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:03 AM
Curse ROBLOX and them Locking everything.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Jan 2014 12:04 AM
You could still get the nil player, just not do anything
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:09 AM
What would destroying it do... ?

for _,n in pairs(Game:GetService("NetworkServer"):GetChildren()) do
if not n:GetPlayer() then
n:CloseConnection() --n:Destroy()
end
end
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
01 Jan 2014 12:10 AM
What exactly is a 'nil player'? Is it when you kick the user and they're still just floating there?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Jan 2014 12:11 AM
@not, no, I believe CloseConnection is locked
@samuel, player.Parent = nil
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
01 Jan 2014 12:11 AM
@not I think it pulls up the 'You've lost connection' or the 'This game has shut down' guis.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:12 AM
Well one example would be in a script builder...

When a player uses an orb.
It sets the player to nil.
Game.Players.LocalPlayer = nil

The player is not there but their client is still connected to the server.


Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
01 Jan 2014 12:12 AM
@cnt if the player's parent is nil then you're not able to access them, are you? That's why people crash the users rather than destroy their player.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:12 AM
It is locked...And that's why I'm wondering what would using Destroy instead of CloseConenction do?
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
01 Jan 2014 12:14 AM
i'm so done with this thread. everytime i post a question someone else already has the answer right above it.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Jan 2014 12:14 AM
@Samuel, you can access them from their replicator (oh thank god the not-locked) using the GetPlayer method but you can't use the Kick method if the parent is nil (or so it was 1 month ago)
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:19 AM
Would this work or would you have to crash their player from their...

Game.Players.PlayerRemoving:connect(function(Player)
local Name = Player.Name
local Rep = Game:GetService("NetworkService"):FindFirstChild(Name)
if Rep then
local Player = Rep:GetPlayer()
Rep:Destroy()
end
end)
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:19 AM
there*
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Jan 2014 12:22 AM
@not, no that wouldn't, since the parent is already nil
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:23 AM
But I'm destroying their NetworkReplicator?

So that gets parented to nil along with their player?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Jan 2014 12:24 AM
You can't destroy the replicator since it's RobloxLocked
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
01 Jan 2014 12:28 AM
I didn't see anything about that on the wiki...But okay...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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