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 » Scripting Helpers
Home Search
 

Re: CFrame Values Useless?

Previous Thread :: Next Thread 
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
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
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
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
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
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
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
02 Nov 2014 10:17 PM
Oh, okay.
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
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 is not online. 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
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
02 Nov 2014 10:23 PM
Heh. Guess this won`t work with .CFrame for parts.
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
02 Nov 2014 10:25 PM
It would.

Value.Value = CFrame.New(10,5,2.5)
Part.CFrame = Value.Value
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
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
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
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
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
02 Nov 2014 10:33 PM
Error: bad argument to #2 '?'(Vector3 expected, got userdata) *
Report Abuse
128GB is not online. 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
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
02 Nov 2014 10:34 PM
But what if I need to add something...
Report Abuse
128GB is not online. 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
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
02 Nov 2014 10:35 PM
Then you can add. You just can't divide or multiply.

Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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