File not found?

Hey,

For some reason, my script can’t find the file I want.
I want to reach the file called ‘first’

I hope someone can help me, thanks.

This is probably a good showing of why you should organize your variables. The most likely case here is that you have the hierarchy wrong when identifying the object you want. I suggest you check that you have the right amount of parents and then try again.

Hi!

First of all, I want to ask something to clarify the thread. Is there a part called “first” in the list frame?

If so, it should find the file. But if it still persists, it probably couldn’t find the file. But it sometimes happens to me too.

But, aside from those, I noticed something. Your variable’s and the frame’s name are same. It is probably because of this. Try changing your variable to listlist, or you can just capitalize the first letter of the variable. Try this script;

local List = script.Parent.Parent.Parent.Parent.list -- Use different variable from the "list" frame

function order()
    List.first = -- [[ do something ]]--
end

script.Parent.MouseButton1Click:Connect(order)