KodakKid3
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 2860 |
|
|
| 17 Aug 2014 09:37 AM |
script.Parent.Text = ">Hello " + script.Parent.Parent.Parent.Parent.Parent + "!"
This didn't work, with Output telling me I couldn't preform arithmetic on strings.
I just assumed since you could in javascript, you could in lua, but I guess not.
So, how can I do this? It's supposed to have a TextLabel say "Hello KodakKid3!", or hello to anyone else who talks to the NPC. |
|
|
| Report Abuse |
|
|
| 17 Aug 2014 09:44 AM |
| This isn't java or C++ or whatever; string concatenation doesn't work with the + operator. Instead, you do "string" .. "ohter string" |
|
|
| Report Abuse |
|
KodakKid3
|
  |
| Joined: 25 Dec 2008 |
| Total Posts: 2860 |
|
| |