| |
|
| |
|
| |
|
| |
|
|
| 07 Aug 2016 04:03 AM |
wait"2"--[[Example]]script.Parent=(game.ServerScriptService) a=(script.Name) b=(1) for i, v in pairs(game.Workspace:GetChildren()) do print([[checking]]..a) if v.Name==(a)and i~=(b)and game.Workspace:FindFirstChild(a)then Instance.new("Hint",script) script.Message.Text=("omg multiple children in workspace called '"..v.Name.."' !!") script.Message.Parent=(game.Workspace) script.Disabled=(true) end a=(v.Name) b=(i) end |
|
|
| Report Abuse |
|
|
xshot23
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 4873 |
|
|
| 07 Aug 2016 04:32 AM |
for i, v in pairs(game.Workspace:GetChildren()) do if v.Name ==[""] then
end end
? |
|
|
| Report Abuse |
|
|
Marienus
|
  |
| Joined: 02 Jul 2012 |
| Total Posts: 118 |
|
|
| 07 Aug 2016 05:03 AM |
allchildren = game.Workspace:GetChildren()
for i = 1,#allchildren do if allchildren[i].Name == "NameThatThePartsYouWantHave" then allchildren[i]:DoStuffWithIt(things) end end |
|
|
| Report Abuse |
|
|
| |
|