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?
You are looking for the GetFullName method
Example:
print(workspace.Camera:GetFullName()) -- returns: Workspace.Camera