Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to identify workspace items?

I am trying to modify a player and want their shirt graphic and body colors but they are 2 words. Not sure how to find em in workspace then as I am using to identify my character as char.

local G = "Shirt Graphic"
char.G:Remove()

For some reason this doesn't work and its the same for the body colors.

1 answer

✓ Accepted answer

By what I understand, you're tring to access a directory that has a space in its name.

The easiest way to do this is using the FindFirstChild Method

--Make sure you define what char is!

char:FindFirstChild("Shirt Graphic")

You can add more directories/methods by just treating it like a normal one! For example

char:FindFirstChild("Shirt Graphic").property --Simply add a property right after the ')'

Or like you wanted

char:FindFirstChild("Shirt Graphic"):Remove()

Hope this helps!

This discussion is preserved as it was. New answers, comments, and votes are closed.