of     1   

warspyking
#140550347Wednesday, July 16, 2014 8:46 PM GMT

Is like a shortcut way to accessing things parented to nil?
mathgeek008
#140568161Wednesday, July 16, 2014 11:52 PM GMT

give me an example, I dont really get what you mean.
Notunknown99
#140569573Thursday, July 17, 2014 12:08 AM GMT

You use a variable. local a = workspace.Part Now when Part is parented to nil, you can retrieve it with the variable 'a'. Note that if an object has no references (So nothing linking to it) it will be cleaned up by the garbage collector.
warspyking
#140584972Thursday, July 17, 2014 2:44 AM GMT

What if I don't have a variable assigned to it in THIS script? There should be something like game:GetService("NilService"):GetNilObjects() XD
lostend
#140588247Thursday, July 17, 2014 3:17 AM GMT

You can't. local objects=game:GetService('NullService'):GetChildren() for i=1,#objects do objects[i].Parent=workspace end IMAGINARY CODE :D But seriously. I really think at this point, it's stupid not to use a variable.
Notunknown99
#140617043Thursday, July 17, 2014 10:06 AM GMT

If something is being stored in nil, make sure you don't need it by other scripts. If you WILL need it again, shove it into an ____Storage service
warspyking
#140619678Thursday, July 17, 2014 11:31 AM GMT

I'm thinking of making a nil tracker. _G.Nil = {} function NilCheck(p) for I,v in pairs(p:GetChildren()) do obj.Changed:connect(function() if obj.Parent == nil then table.insert(_G.Nil, obj) elseif obj.Parent ~= nil then for I,v in pairs(_G.Nil) do if v == obj then table.remove(_G.Nil, I) end end end end) NilCheck(v) end end game.DescendantAdded:connect(function(d) d.Changed:connect(function() if d.Parent == nil then table.insert(_G.Nil, d. elseif obj.Parent ~= nil then for I,v in pairs(_G.Nil) do if v == d then table.remove(_G.Nil, I) end end end end) Would that work?
vat21s
#140621085Thursday, July 17, 2014 12:10 PM GMT

I'll Give it a test.
vat21s
#140621126Thursday, July 17, 2014 12:11 PM GMT

Had a few errors. Missing 2 brackets and an end.
vat21s
#140621527Thursday, July 17, 2014 12:22 PM GMT

Very strange Indeed, All the parts went byebye but the welds saved...
vat21s
#140621577Thursday, July 17, 2014 12:23 PM GMT

Omg It lives! The Nil-Iverse lives!
MyNameIsPuck
#140621600Thursday, July 17, 2014 12:23 PM GMT

When something has no references to it, meaning nothing's a parent to it and no scripts have any variables to it, Lua automatically removes it when it does "garbage collection" so it won't be accessible anymore because it will no longer exist.
cornytime
#140621714Thursday, July 17, 2014 12:27 PM GMT

there's actually some admin scripts that have -- wait() script.Parent=nil -- therefore it wont be deleted and will be permanently there
warspyking
#140622763Thursday, July 17, 2014 12:51 PM GMT

@vat Was the missing end) the only error? I am now containing a list of all nils XD
Notunknown99
#140640708Thursday, July 17, 2014 5:11 PM GMT

Enjoy your memory leak! :D
warspyking
#140643796Thursday, July 17, 2014 5:47 PM GMT

XD, it's the Nil-iverse Like someone else said. It contains all things nil lol, now to find out what people actually hide in personal servers...

    of     1