generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: What is wrong

Previous Thread :: Next Thread 
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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 is not online. 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
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
11 Mar 2015 03:38 PM
bump


------------------------------------------------------------------------------------------------------------------------------------------------ "Impossible is a word to be found only in the dictionary of fools." - Napoleon Bonaparte ☊✪✪☊
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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
SlingJongUnkie is not online. SlingJongUnkie
Joined: 06 Mar 2015
Total Posts: 84
11 Mar 2015 03:41 PM
"script.Parent.Text = script.Parent "Money: " + 100"
^ That makes no sense at all.
Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
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 is not online. 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
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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 is not online. 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
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
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 is not online. 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
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
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
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
11 Mar 2015 07:02 PM
You should use locals... it will make this much easier for us to read e.e
Report Abuse
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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 is not online. 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
handsomebob10 is not online. handsomebob10
Joined: 25 Sep 2010
Total Posts: 8259
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image