Cant get the name of a objectvalue's instance parent?

idk how to word it, but here the peice of code failing:

Type.Attach.ObjectInPlace.Value.Parent.Name

“Type” is a part
“Attach” is a part inside it
“ObjectInPlace” is a onject value (Not Nil btw)
“Value” well you can prolly guess what that is
and then im trying to get the parent of the object the objectinplace value has… and then the name…
The whole “Getting the parent” thing seems to work but i cant get its name

2 Likes

Try putting the value of it in a variable and then getting it’s parent.

So:

local ObjectValue = Type.Attach.ObjectInPlace.Value
local Name = ObjectValue.Name
1 Like

i dont think it will change anything

1 Like

Yeah nah, just tested it. Doesn’t make a difference.

1 Like

u know, im REALLY dumb sometimes… you wnana know what SILLY DUMB THING I DID??
OBJECT IN PLACE… WAS NOT A OBJECT VALUE!!!
Anyways, i just added to my code and added a object value so the parts keep track of that now…
And it works. so what i was doing was fine, its just the wrong value type.
Thanks guys!

2 Likes

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