Advertisement
dkg_yt

arraylist

Dec 14th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local arraylist = {}
  2. local test = Intstance.new("TextLabel",workspace")
  3. test.Name = "test"
  4. function arraylist:newItem(arraylist,text)
  5. local blank = workspace.test
  6. local new = blank:Clone()
  7. new.Parent = arraylist
  8. new.Text = text
  9. new.Name = text
  10. end
  11.  
  12. function arraylist:removeItem(arraylist,item)
  13. local ITEM = arraylist:WaitForChild(item)
  14. ITEM:Destroy()
  15. end
  16.  
  17. return arraylist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement