As I’ve started exploring roblox scripting even deeper to get to the most advanced stuff rarely any roblox developers get to, I’ve came to ask this question.
Once a script like this is called:
local Instance1 = Instance.new("ClassName")
Instance1.Name = "Whatever"
As you see, the parent isn’t assigned. Even tho the parent isn’t assigned the object as some data form still exists.
My question is: Where is it stored and how to access that path?
If you have any questions about this, I’ll explain further.
local Instance1 = Instance.new("ClassName")
Instance1.Name = "Whatever"
the instance that you are trying to create isnt anywhere aka it’s Parent is nil so you cannot access/locate where the instance is located because the instance is just nowhere
If you are trying to make an anticheat. I would sincerely recommend making it a serverside. Client side is really easy to bypass. If we take your example of setting a script’s parent to nil by doing like so:
script.Parent = nil
-- Client anticheat code.
For a hacker, it is as easy as to loop through the
getnilinstances()
which returns all the instances which are parented to nil, decompile it and bypass the anticheat.