Say if I have a script within a Part, that's in workspace, the script would print: "Workspace>Part>Script". I know how to use concatenation to print that, but I can't figure out how to make the script keep going up a Parent, without causing an error. Any tips?
✓ ANSWER ACCEPTED
How to print the full location of a Script/Part?
1 answer
✓ Accepted answer
You are looking for the GetFullName method
Example:
print(workspace.Camera:GetFullName())
-- returns: Workspace.Camera
6 comments
1
Thank you very much! I can't believe that I've overlooked that!
1
Would you happen to know how to highlight the part in exlorer?
0
You mean a selection box.....
0
Yes, i do know. the Selection Service(http://wiki.roblox.com/index.php?title=API:Class/Selection) only in studio/edit i believe, though.
0
@Lucas, No, in studio, how an object would be highlighted in the Explorer. @Iaz, Thanks, but that's not what I was looking for
0
you can set the selection using it, it shows how in the examples
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I've tried setting up a function, that would keep adding the Parent's name to a Table, if the name isn't "Place2", but it would always overflow for some reason. I can't provide the script, since the overflow crashed my studio.