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: Need help with variables

Previous Thread :: Next Thread 
megasegadude is not online. megasegadude
Joined: 10 Apr 2013
Total Posts: 16
01 Oct 2016 08:44 AM
Hello, I am currently working on a game health script and I currently have a text label which sets a variable to its text. I was wondering how I could join text and a variable together. For example I would like to have the word Health= placed before the health variable I have. So the text label reads out "Health=100".
Report Abuse
ChocoladeOP20 is not online. ChocoladeOP20
Joined: 09 Apr 2016
Total Posts: 5
01 Oct 2016 08:48 AM
for example:

print("Health=" + int)
Report Abuse
megasegadude is not online. megasegadude
Joined: 10 Apr 2013
Total Posts: 16
01 Oct 2016 08:49 AM
Thank you! I got it working now.
Report Abuse
ChocoladeOP20 is not online. ChocoladeOP20
Joined: 09 Apr 2016
Total Posts: 5
01 Oct 2016 08:49 AM
But I am not sure if it accepts it to labels, it should though.

I pressed post instead of preview, so sorry for spam.
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
01 Oct 2016 08:50 AM
you use ".." not "+" to connect strings in Lua
Report Abuse
megasegadude is not online. megasegadude
Joined: 10 Apr 2013
Total Posts: 16
01 Oct 2016 09:10 AM
The .. is working much better to connect strings, anyways I don't need anymore help with it so thanks.
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