of     1   

Wizzi0
#63516385Monday, February 27, 2012 1:42 AM GMT

I'm working on an electronic construction sign and I was wondering if someone could help me with a peice of my code. When I run my code I get an error saying that Line is not a valid member of model. I am trying to use a string by calling function letterCheck(). I am unfamilliar with using strings in Lua and I am also not sure if what I have for calling my function will work either. If someone could help I would greatly appreciate it. I have provided a small section of my code below. while true do local p = script.Parent else l=1 for i=1, 8 do p.Line[l].Letter[i].Decal.Texture = letterCheck(l,i) <-- Line 18 end end end
bl5eebryce
#63516697Monday, February 27, 2012 1:46 AM GMT

I need more info. What is 'p'?
Wizzi0
#63516913Monday, February 27, 2012 1:49 AM GMT

p = script.Parent
bl5eebryce
#63517032Monday, February 27, 2012 1:50 AM GMT

Object. StringValue? Model? Decal? That kind of stuff.
earth100
#63517076Monday, February 27, 2012 1:51 AM GMT

Is your sign set up like this? Sign - Script - Line --Letter1 --Letter2 ? If so I suspect that your problem is that you are trying to interate through the chldren of the model Line, and get the letter at i.... Line[i] does not work Line:getChildren()[i] will work the [#] works on tables, not models
Wizzi0
#63517232Monday, February 27, 2012 1:53 AM GMT

Yes it is set up like that.
Wizzi0
#63519287Monday, February 27, 2012 2:21 AM GMT

Now how would I go about calling a function and passing it the value of i?

    of     1