Hey everyone!
I have a structure like this:
And I can easily change texture of that “floor” object with it’s init function, but I have quite a few of objects like this, so I need to change texture from a parent script. But I can’t. It gives “attempt to index global ‘self’ (a nil value)” error on script like:
go.property("texture", resource.texture("/01.jpg")) go.set("/floor#floor", "texture", self.texture)
Obviously I can’t use self property like that, but other options don’t work.