|
| 02 Nov 2014 10:14 PM |
| I have a CFrame value (object) and it doesn`t have a value property or anything. Pretty much useless. Is there a special way to use CFrame values? |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:16 PM |
CFrame values don't show their value in property window as it would be too long.
It still holds a value, same way as all ValueObjects.
Must be used by script to be useful.
print(CFVal.Value) |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:16 PM |
| I think it might be a glitch. The wiki says the CFrameValue has a value property, but in studio it doesn`t... |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Nov 2014 10:19 PM |
CFrames are more than XYZ.
It holds like 12 or 15 numbers.
Forgot exactly how many.
Something like that would be too long to show in property bar.
It's like how you can't see the CFrame of an object, but can read it with code. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 02 Nov 2014 10:19 PM |
Its not a glitch its a hidden property Kinda like LocalTransparencyModifier for parts
http://wiki.roblox.com/index.php?title=API:Class/BasePart/LocalTransparencyModifier |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:23 PM |
Heh. Guess this won`t work with .CFrame for parts.
|
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:25 PM |
It would.
Value.Value = CFrame.New(10,5,2.5) Part.CFrame = Value.Value |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:30 PM |
Well, not sure about the line of code I`m working on.
left = game.Workspace.Part leftcord.Value = (left.CFrame - CFrame.new(0,0,0.2)) ^^^ Error: bad argument to 2 '?'(Vector3 expected, got userdata) |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:32 PM |
leftcord.Value = (left.CFrame - Vector3.new(0,0,0.2))
If you are only offsetting XYZ, you would subtract a vector3.
Idk but that's how it works
:/ |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:33 PM |
| Error: bad argument to #2 '?'(Vector3 expected, got userdata) * |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 02 Nov 2014 10:33 PM |
leftcord.Value = (left.CFrame - Vector3.new(0,0,0.2))
|
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:34 PM |
| But what if I need to add something... |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 02 Nov 2014 10:34 PM |
leftcord.Value = (left.CFrame + Vector3.new(0,0,0.2))
|
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:35 PM |
Then you can add. You just can't divide or multiply.
|
|
|
| Report Abuse |
|
|
|
| 02 Nov 2014 10:36 PM |
leftcord.Value = (left.CFrame - Vector3.new(0,0,0.2)) ^^^ Error: bad argument to #3 'Value' (Vector3 expected, got userdata) |
|
|
| Report Abuse |
|
|