Advertisement
otorp2

roblox instance child

Nov 18th, 2017
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function party()
  2. local mynewpart = Instance.new("Part",workspace)
  3.  
  4. end
  5.  
  6.  
  7. for index, child in pairs(workspace.maBrickmodel:GetChildren()) do
  8. print(index, child.Name)
  9.  
  10. if child.Name == ("87") then
  11. print("87 is a child of maBrickmodel")
  12. party()
  13.  
  14.  
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement