Simple question. I am working with UI right now and I am wondering which one is more efficient/recommended to be used when calling the parent? Both do reference the same parent.
local Button = script.Parent.Parent:WaitForChild("ReCenterMap")
or
local Button = script.Parent

2 comments
That was the answer I was looking for. Thanks. Just to clarify, I am just wondering because I am doing a MouseButton1Down on a TextButton to open another GUI.
No problem! And yeah, I figured that's what you were trying to do because you said you were working with UI. Also, are you new to Lua? I'm not too experienced myself, but when I first started, I was a bit confused by WaitForChild() and UI as well.