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 Happened to Values?

Previous Thread :: Next Thread 
KingRavenII is not online. KingRavenII
Joined: 23 Dec 2011
Total Posts: 56
07 Feb 2015 09:02 PM
Can I still add a "value" to a model and type whatever in the value (in properties)? I cant find it anywhere but I know you can do it, or used to be able to. How?
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
07 Feb 2015 09:03 PM
http://wiki.roblox.com/index.php?title=Class_reference#Values
Report Abuse
KingRavenII is not online. KingRavenII
Joined: 23 Dec 2011
Total Posts: 56
07 Feb 2015 09:04 PM
Oh gosh, whats the difference between all those values? o.o
Report Abuse
Seranok is not online. Seranok
Joined: 12 Dec 2009
Total Posts: 11083
07 Feb 2015 09:05 PM
What type of values they hold. A string value holds a string (a sequence of characters), an int value holds an integer, etc.
Report Abuse
KingRavenII is not online. KingRavenII
Joined: 23 Dec 2011
Total Posts: 56
07 Feb 2015 09:05 PM
Well actually, which one would I want to use if I wanted it to hold the numbers of an asset id or a link that has entire asset id?
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
07 Feb 2015 09:06 PM
Asset id = IntValue
Asset link = StringValue
Report Abuse
KingRavenII is not online. KingRavenII
Joined: 23 Dec 2011
Total Posts: 56
07 Feb 2015 09:07 PM
Thank you very much, its a struggle
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
07 Feb 2015 09:08 PM
Why is the other number value called a NumberValue instead of a FloatValue?
I mean, you have to be kid friendly, but cmon
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
07 Feb 2015 09:11 PM
Lua 5.1 doesn't support integers, so integers and decimals are both generalized as Numbers.
Report Abuse
Ruinable is not online. Ruinable
Joined: 14 Sep 2014
Total Posts: 8903
07 Feb 2015 09:17 PM
I like variables
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
07 Feb 2015 09:21 PM
Variables don't work for putting a value in place from the server where you can index it on the client based on an event on the client.
Report Abuse
KingRavenII is not online. KingRavenII
Joined: 23 Dec 2011
Total Posts: 56
07 Feb 2015 09:46 PM
How would I get the value in "ShirtValue" to equal "local shirtId"? This is what I did.


local shirtId = game.Parent.Parent.Parent.ShirtValue.Value
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
07 Feb 2015 09:55 PM
In order to assign something to a variable, you need to set it to the object, not the property. Setting it to an object gets you access to that object, but setting it to a property only gets you the value of that property instead of that property.

local brick = workspace.Part
print (brick.Name" "brick.Parent.Name) -- Part Workspace
local brickcolor = workspace.Part.BrickColor
print (brickColor.Name) -- errors
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
07 Feb 2015 09:57 PM
What I'm saying is:
local shirtidobject = workspace.ShirtId
shirtidobject.Value = 424242424242
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