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
 

Not making plr nil? No errors.

Previous Thread :: Next Thread 
badfitz99 is not online. badfitz99
Joined: 01 May 2010
Total Posts: 5854
21 Jun 2014 07:31 PM
game.Players.ChildAdded:connect(function(plr)
if game.Workspace.Playing.Value == true then
plr = nil
end
end)
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
21 Jun 2014 07:31 PM
It IS making plr nil. plr is a variable. If you want to kick players when they join (Bad idea, do not do it), use plr:Kick()
Report Abuse
badfitz99 is not online. badfitz99
Joined: 01 May 2010
Total Posts: 5854
21 Jun 2014 07:33 PM
no, no. I'm trying to make it so if the player joins while the value is true, they are nil'd so they can't do anything. Only just move around
Report Abuse
cxcharlie is not online. cxcharlie
Joined: 26 Aug 2009
Total Posts: 1414
21 Jun 2014 07:39 PM
plr.Parent = nil ?
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
21 Jun 2014 07:42 PM
Workspace:WaitForChild(plr.Name).Parent = nil

thatll allow them to go around freely, and still technically be in game
Report Abuse
cjsaurusrex is not online. cjsaurusrex
Joined: 26 Jul 2009
Total Posts: 2163
21 Jun 2014 07:43 PM
game.Players.PlayerAdded:connect(function(plr) --Use PlayerAdded instead.
if game.Workspace.Playing.Value == true then
repeat wait(1/60) until player.Character ~= nil --Wait until the player's Character isn't nil, just to be sure.
plr.Character = nil --Make their character nil, not them.
end
end)
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