|
| 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
|
  |
| 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 |
|
|
|
| 07 Feb 2015 09:04 PM |
| Oh gosh, whats the difference between all those values? o.o |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 07 Feb 2015 09:06 PM |
Asset id = IntValue Asset link = StringValue |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2015 09:07 PM |
| Thank you very much, its a struggle |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|