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: I need help, something with GetChildren() function???

Previous Thread :: Next Thread 
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:29 PM
items = game.Workspace.ActiveParts:GetChildren()
thisistrue = true
while thisistrue do
items:GetChildren(Children.anchored.true)
end


INFO: The parts under the model "ActiveParts" are more models of people in the game. Then I want (in line 4) for items to get children (the parts in the player models) And I want all of those parts there anchored... I think this script is totally wrong. I'm a beginner scripter. Help.
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:36 PM
bump
Report Abuse
alphaseries2 is not online. alphaseries2
Joined: 22 Apr 2011
Total Posts: 964
25 Aug 2011 08:36 PM
Well I can only script great with guns, not players, I just made my first player script now, I just posted to see if it worked, But I think you need to try something else.
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:38 PM
uhh... what???
Report Abuse
Drak0Master is not online. Drak0Master
Joined: 10 Aug 2009
Total Posts: 836
25 Aug 2011 08:43 PM
variable1 = variable2:GetChildren()
for i = 1,#variable1 do
--INSERT STATEMENTS FOR CHILDREN
end
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
25 Aug 2011 08:44 PM
items = game.Workspace.ActiveParts:GetChildren()

for i = 1, #items do
items[i].Anchored = true
end

-Like an AWESOME boss
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:46 PM
@ElectriceBlaze
Anchored is not a valid member of Model
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
25 Aug 2011 08:47 PM
items = game.Workspace.ActiveParts:GetChildren()

for i = 1, #items do
if items[i].className == "Part" then
items[i].Anchored = true
end
end

-Like an AWESOME boss
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:48 PM
@ElectricBlaze
No errors, Im going to give it a shot
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:50 PM
Nope..... T_T didnt work
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
25 Aug 2011 08:51 PM
Easier.

for i, v in pairs(game.Players:GetPlayers()) do
if workspace:findFirstChild(v.Name) then
for _, z in pairs(v.Character:GetChildren()) do
if z:IsA("Part") then
z.Anchored = true
end
end
end
end
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:55 PM
@darkkiller
Im not sure if that works CUZ IM LAGGING WHEN I PUT SCRIPT IN im checkin it out
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:56 PM
nope doesnt work man this will never be solved probably because im doing something wrong and this will never work imma delete my sandbox game soon maybe this isnt working waaaaa
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
25 Aug 2011 08:58 PM
brb i will be back in about 10 hours im sleepin now bye
Report Abuse
newfyworld is not online. newfyworld
Joined: 16 Jul 2011
Total Posts: 89
26 Aug 2011 10:10 AM
im back halp
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