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
 

Is DescendantAdded not working anymore?

Previous Thread :: Next Thread 
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
02 Jun 2014 10:36 PM
Anyone know what is wrong?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Jun 2014 10:45 PM
Works fine for me. Is there any output or something for you?
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
02 Jun 2014 10:48 PM
No, it works for everything except for game.Players
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Jun 2014 10:50 PM
What is happening?
Report Abuse
SecondaryZero is not online. SecondaryZero
Joined: 22 Nov 2013
Total Posts: 162
02 Jun 2014 10:50 PM
Workspace.DescendantAdded:connect(function(descendant)
print(descendant)
end)
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
02 Jun 2014 11:03 PM
@cntkillme, that is the problem, nothing is happening.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Jun 2014 11:04 PM
So there is no output or anything? And the script is enabled in a place it would run?

Weird, I'm going to test this right now since this is really strange.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Jun 2014 11:04 PM
if its not working for game.Players, you could always..

game.DescendantAdded:connect(function(D)
if D:IsDescendantOf(game.Players) then

end

end)
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
02 Jun 2014 11:06 PM
Well see, I am making my own PlayerList rather than the stupid ROBLOX CoreGui one.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Jun 2014 11:08 PM
But why do you need descendant added?
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
02 Jun 2014 11:18 PM
Because PlayerAdded doesn't work in a LocalScript and you need a LocalScript in order for the script to work.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
02 Jun 2014 11:20 PM
lol, do you REALLY need a localscript for custom plrlist?

ive made 1 before, no localscript
Report Abuse
SecondaryZero is not online. SecondaryZero
Joined: 22 Nov 2013
Total Posts: 162
02 Jun 2014 11:20 PM
My is correct, go to PlaySolo and add part, it gonna print part.
Slash a sword and it gonna print Animation and stuff
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
02 Jun 2014 11:23 PM
I still don't understand why you don't use ChildAdded
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
02 Jun 2014 11:34 PM
Doesn't work
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
02 Jun 2014 11:37 PM
Well actually I have this:

repeat wait() until game.Players.LocalPlayer.PlayerGui

--Variables
plr = game.Players.LocalPlayer
chr = plr.Character
Mouse = plr:GetMouse()

--PlayerNames
game.Players.ChildAdded:connect(function(C)
print(C.Name)
s = Instance.new("TextLabel")
s.Parent = script.Parent
end)
Report Abuse
SuperiorEternal is not online. SuperiorEternal
Joined: 22 Aug 2009
Total Posts: 2365
02 Jun 2014 11:54 PM
Anyone?
Report Abuse
uyoyalt is not online. uyoyalt
Joined: 16 Apr 2013
Total Posts: 2860
03 Jun 2014 01:02 AM
Are you trying this solo run or server.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jun 2014 01:23 AM
'repeat wait() until game.Players.LocalPlayer.PlayerGui'
No doing this useless since you know PlayerGui exists since this script is being ran in it.
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