|
| 11 Mar 2015 03:36 PM |
script.Parent.Text = script.Parent "Money: " + 100
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 11 Mar 2015 03:38 PM |
script.Parent.Text = "Money: "..tostring(100)
If that is what you are looking for.
I don't see why 100 needs to be a number.
Dolph Lundgren of OT. |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:38 PM |
bump
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:39 PM |
gerov
script.Parent.Text = script.Parent "Money: "+"100"
? Can i do something like that?
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:41 PM |
"script.Parent.Text = script.Parent "Money: " + 100" ^ That makes no sense at all. |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:41 PM |
script.Parent.Text = script.Parent "Money: "+"100"
no
why change it?
those four years of wumbology are really paying off |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 11 Mar 2015 03:42 PM |
It looks as if you come from Java or C++ or a language like that. The way to combine strings in Lua is (..), not (+).
Dolph Lundgren of OT. |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:43 PM |
how do you mean
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 11 Mar 2015 03:43 PM |
And you also don't need the script.Parent if you are just changing text directly.
wiki.roblox.com
You need that.
Oh, and lua.org
Dolph Lundgren of OT. |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:44 PM |
gerov
I don't even know java just lua xD. I just don't know how to plus 100 as a string into Money:
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:46 PM |
gerov Lol'd I use it 24/7 there isn't a exact explanation of adding 100 in a text.
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:47 PM |
I think you need to go back to the basics
or at least look over the things you skipped
those four years of wumbology are really paying off |
|
|
| Report Abuse |
|
|
gerov
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 5504 |
|
|
| 11 Mar 2015 03:47 PM |
local money = 0
while true do wait(1) --you can change that script.Parent.Text = "Money: "..tostring(money) money = money+100 end
Dolph Lundgren of OT. |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:48 PM |
memorycode
That's like saying you missed the part in school where they tell you what year the Rome empire created you have to learn history again.
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 03:52 PM |
gerov
That wont work
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 07:00 PM |
"memorycode
That's like saying you missed the part in school where they tell you what year the Rome empire created you have to learn history again."
but you didn't miss that part, you obviously missed more with this line:
script.Parent.Text = script.Parent "Money: " + 100
welcome to coding, where things are different than history and small things matter.
those four years of wumbology are really paying off |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 07:02 PM |
| You should use locals... it will make this much easier for us to read e.e |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2015 02:26 AM |
memorycode
Yes but you say that but you can't even give me the right answer.
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|
LucasLua
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 7386 |
|
|
| 12 Mar 2015 02:33 AM |
I lol'ed
This is my 3 AM entertainment |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2015 02:35 AM |
SummerEquinox
How does one not understand one line of code?
------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊ |
|
|
| Report Abuse |
|
|