chevron_right
AnonyAnonymous
#138346155Friday, June 27, 2014 5:26 AM GMT

You could make something along the lines of for c,v in pairs(script.Parent:GetChildren()) do if v.ClassName == "Part" then "Insert CFraming here" end In this case, "v" would be every part belonging to the model. You could then just assign a new CoordinateFrame to v and it would effect every part that is the "Child" of the model. I added ClassName just to check incase you have any other children of the model that isn't a part howver :IsA() works just aswell.
AnonyAnonymous
#138444556Saturday, June 28, 2014 1:31 AM GMT

for c,v in pairs(Workspace:GetChildren()) do if v.Name == "Map1" then --Code Here end In this case, "v" would be the child.
AnonyAnonymous
#138606360Sunday, June 29, 2014 10:25 AM GMT

Alright The Value = Instance.new("IntValue") Creates a brand new NumericalValue for the player, from there you can just use Value = NumberValueHere to set it's leaderboard value and finally, the Value.Parent = Player Just changes it so it becomes a "Child" of the player in game.Players which you find in the explorer tab.
AnonyAnonymous
#138948510Wednesday, July 02, 2014 4:48 AM GMT

for c,v in pairs(game.Players:GetChildren()) do v.Character:MoveTo(Target.Position) end "v" would be any children in the players child table.
AnonyAnonymous
#138981237Wednesday, July 02, 2014 2:53 PM GMT

http://wiki.roblox.com/index.php?title=Function_dump/Basic_functions#next It basically just allows you to get a child of a table via choosing it's position.
AnonyAnonymous
#139155130Thursday, July 03, 2014 11:07 PM GMT

You need to check if x actually has a parent and if the parent actually has a child named "Humanoid", if x.Parent and x.Parent:FindFirstChild("Humanoid") then --Code Here end
AnonyAnonymous
#139161657Friday, July 04, 2014 12:13 AM GMT

table = {player1 = 1, player2 = 2, player3 = 3, player4 = 4, enemy1, enemy2, enemy3, enemy4} if table[player1] < table[player2] then print("Player1 has defeated Player2") end In the above example, I changed the the parenthesis into curley brackets which is the main method of creating a table, I turned each player into a variable containing the value of 1, and I removed some other unnecessary characters, I then add an if statement to check which has the greater value and if the child of table "pl...
AnonyAnonymous
#139184671Friday, July 04, 2014 4:59 AM GMT

That's not necessary as for instance, talk[1] would select first child in the table.
AnonyAnonymous
#139185282Friday, July 04, 2014 5:07 AM GMT

Alright, here you go, Part = Instance.new("Part") --This is a comment. comments do not effect the actual script at all, use them for documentation and such if you want. --Part = Instance.new("Part") would create a brand new brick named "Part" which is the default name, however we need to assign a Parent to this part so I will use. Part.Parent = game.Workspace --This will turn the part into a physical 3D object within workspace as a "child" which we can add additional code to interact with. Part....
AnonyAnonymous
#139213197Friday, July 04, 2014 2:53 PM GMT

for _,v in pairs(game.Workspace:GetChildren()) do if v.Name == "Part" then v.BrickColor = BrickColor.new("Magenta") end end --What I basically did was loop through the children of workspace using a generic for loop to get the children and then I used .Name to determine the name of the child.
AnonyAnonymous
#139296079Saturday, July 05, 2014 7:24 AM GMT

Create the script, then ScriptClone = script:clone() game.Workspace.ChildAdded:connect(function(Child) if Child.ClassName == "Part" then ScriptClone.Parent = v end end)
AnonyAnonymous
#139297559Saturday, July 05, 2014 7:56 AM GMT

Modify it so that the new TextLabel is a child of the original one and change the Udim2.new() to move it down if it's a child of it.
AnonyAnonymous
#139349300Saturday, July 05, 2014 9:06 PM GMT

Is the child inside Workspace or one of the children of Workspace?.
AnonyAnonymous
#139475748Monday, July 07, 2014 12:41 AM GMT

Also, regarding your question about pairs, yes, it can be used to search through things, I'll give an example. Table = {"One","Two","Three","Four","Five"} for i,v in pairs(Table) do print(i,v) end In this example, I created a table and used a pairs() loop to loop through the table and get all of the "Children", this would print the numerical order of each "Child" and the "Child"(s) name, this would be called the generic for, which you can read more about here, http://wiki.roblox.com/index.php?ti...
AnonyAnonymous
#139511154Monday, July 07, 2014 6:55 AM GMT

Try something like this, Child = game.Workspace:FindFirstChild("111") Child:Destroy()
AnonyAnonymous
#139544263Monday, July 07, 2014 5:28 PM GMT

while wait() do if game.Players.NumPlayers >= 4 then for k,p in pairs(game.Players:GetChildren()) do p.PlayerGui.ChildAdded:connect(function(Child) if Child.Name == "Announcements" then p.Player.PlayerGui.Announcements.Waiting.Visible = true end end) end end end
AnonyAnonymous
#139545783Monday, July 07, 2014 5:43 PM GMT

Is "Waiting" the child of "Announcements"?.
AnonyAnonymous
#139546082Monday, July 07, 2014 5:46 PM GMT

Hmm, well if "Waiting" is the "Child" of "Announcements" then this will be rather interesting.
AnonyAnonymous
#139546369Monday, July 07, 2014 5:50 PM GMT

while wait() do if game.Players.NumPlayers >= 4 then for k,p in pairs(game.Players:GetChildren()) do p.PlayerGui.ChildAdded:connect(function(Child) if Child.Name == "Announcements" then if Child:FindFirstChild("Waiting") then --Code Here else print("Waiting Not Found!") end end end) end end end
AnonyAnonymous
#139633273Tuesday, July 08, 2014 11:20 AM GMT

Alright, I'll explain to help you, Let's pretend that I have a bunch of Strings ranging from "One to "Five" and I want to arrange these in order and store them together, I would of course, create a table, NumTab = {"One","Two","Three","Four","Five"} However, what if I decide I want to find a specific string by searching directly through the table, well in this case, I will use a generic for loop to do that, I also want to find "Two". for i,v in pairs(NumTab) do if v == "Two" then print("Two has ...
AnonyAnonymous
#139706005Wednesday, July 09, 2014 12:53 AM GMT

GetChildren() retrieves the table, :Clone() is for Cloning an individual "Child" of the table.
AnonyAnonymous
#139711206Wednesday, July 09, 2014 1:42 AM GMT

Is the SurfaceGUI the "Child" of a physical "Part" in Workspace?.
AnonyAnonymous
#139809039Wednesday, July 09, 2014 11:13 PM GMT

An example would be, NumTab = {"One","Two,"Three"} table.remove(NumTab,3) That would remove "Three" because "Three" is corresponding to the third "Child" in numerical order of the table "NumTab".
AnonyAnonymous
#139823981Thursday, July 10, 2014 1:35 AM GMT

In theory, the first "=" would be for the first "Child"(Depending on the case) and the second "=" would be for the second.
AnonyAnonymous
#139840334Thursday, July 10, 2014 4:29 AM GMT

game.Workspace.ChildAdded:connect(function(Child) if Child.Name == "INfecTION" then Child:Destroy() end end)

chevron_right