Feedback on "Instance:GetFullName"

This feature works, but if you use GetFullName on an instance with illegal characters for paths such as spaces in it, GetFullName returns something like this: Workspace.Part!.Object with spaces in it.🙂 instead of the expected workspace["Part!"]["Object with spaces in it"]["🙂"] or something similar to that. If this is unintentional, a way to fix this could be detecting if the next parent’s name includes illegal characters and then using [“name”] instead of .name.

Affected URL: https://create.roblox.com/docs/reference/engine/classes/Instance#GetDebugId

That would not be desirable in my opinion:

  • You shouldn’t be parsing the full name string, it’s just a debug affordance. Doing this would add more visual noise to it, which is bad for debugging.
  • If you do want to parse the full name string for some reason, that’s easier to do with the dots, because then parsing it is simply GetFullName():split(".")
  • If you don’t want to use it for debugging or parsing… what do you want to use it for?
2 Likes

Those are some great points, I honestly didn’t really think that far. I made this because I was testing some stuff in my game, I used GetFullName to retrieve a path for something so I could use the Command Bar to modify it, and then I realized I had to fix the path so it wouldn’t cause any errors.

Other than that small use-case my idea would’ve fixed, I agree that the points you made outweigh the pros of my potential “solution”.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.