Advertisement
Animescapetower

oker

Mar 17th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. t = {}
  2. for i = 0,20000 do
  3. table.insert(t,i,i)
  4. end
  5.  
  6. print(collectgarbage("count"))
  7. t = nil
  8. print(collectgarbage("count"))
  9. --Script one:
  10. _G.variable = "This a variable in _G."
  11.  
  12. --Script two:
  13. while _G.variable == nil do wait() end --make sure that script one sets the variable before this one tries to read it
  14. print(_G.variable)
  15.  
  16. print (gcinfo())
  17. a=collectgarbage("count")
  18.  
  19. print(a)
  20. var1 = 7
  21. var2 = 9
  22. getfenv()["var3"] = 11
  23. for i, v in pairs(getfenv()) do
  24. print(i, " = ", v)
  25. end
  26. local a = newproxy()
  27. print( a.Name )
  28. -- Ran from a Script in workspace called "Script"
  29. local function a()
  30. print(debug.traceback())
  31. end
  32. function b()
  33. a()
  34. end
  35. local function c()
  36. b()
  37. end
  38. c()
  39. while true do
  40. debug.profilebegin("custom_label")
  41. --your code here
  42. debug.profileend()
  43. wait()
  44. end
  45. for k,v in pairs(t) do
  46. --body
  47. end
  48. t = {1,2,"a","d",c = 12, q = 20}
  49. for i,v in pairs(t) do
  50. print(i,v)
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement