|
| 18 Mar 2014 05:03 PM |
Is this how you do it:
for _,v in pairs(workspace:GetChildren()) do print(v.Name) end |
|
|
| Report Abuse |
|
L0cky2013
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 1446 |
|
| |
Parloes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 286 |
|
|
| 18 Mar 2014 05:20 PM |
I actually just fixed that!
for i,v in pairs(game.Players:GetChildren()) do -- what to do? end
For an example (if your are struggling), in the 'what to do?' part, say if you have a LinkedSword in Lighting and you want to clone it into every players' backpack. The code would be along the lines of this:
for i,v in pairs(game.Players:GetChildren()) do game.Lighting.LinkedSword:clone().Parent = v.Backpack -- Clones a sword into every players backpack. (always write tips down to know what it is doing). end |
|
|
| Report Abuse |
|