Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = {}
- for i = 0,20000 do
- table.insert(t,i,i)
- end
- print(collectgarbage("count"))
- t = nil
- print(collectgarbage("count"))
- --Script one:
- _G.variable = "This a variable in _G."
- --Script two:
- while _G.variable == nil do wait() end --make sure that script one sets the variable before this one tries to read it
- print(_G.variable)
- print (gcinfo())
- a=collectgarbage("count")
- print(a)
- var1 = 7
- var2 = 9
- getfenv()["var3"] = 11
- for i, v in pairs(getfenv()) do
- print(i, " = ", v)
- end
- local a = newproxy()
- print( a.Name )
- -- Ran from a Script in workspace called "Script"
- local function a()
- print(debug.traceback())
- end
- function b()
- a()
- end
- local function c()
- b()
- end
- c()
- while true do
- debug.profilebegin("custom_label")
- --your code here
- debug.profileend()
- wait()
- end
- for k,v in pairs(t) do
- --body
- end
- t = {1,2,"a","d",c = 12, q = 20}
- for i,v in pairs(t) do
- print(i,v)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement