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: Cframing Help

Previous Thread :: Next Thread 
jonman11 is not online. jonman11
Joined: 30 Jan 2010
Total Posts: 3386
22 Mar 2013 03:25 PM
In a script, to change the cframe of an object, is this the line of code you use?
---------------------------------
part = Script.Parent

part.Cframe.Vector3.new = ("0,0,0")
----------------------
If not, what is?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
22 Mar 2013 03:27 PM
part = script.Parent

part.CFrame = CFrame.new(0,0,0)
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
22 Mar 2013 03:28 PM
No. That is totally totally totally incorrect.

part = script.Parent
part.CFrame = CFrame.new(0, 0, 0)
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
22 Mar 2013 03:29 PM
What property does change once c-framed?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
22 Mar 2013 03:30 PM
The 'Position' property is changed.
Report Abuse
koen500 is not online. koen500
Joined: 23 Feb 2011
Total Posts: 2277
22 Mar 2013 03:34 PM
In what way?
Any examples?
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
22 Mar 2013 03:38 PM
When you use CFrame.new and are not adding or multiplying a CFrame by another CFrame, you are actually setting the position (Vector3) of the object. CFrame.new is different because you can set objects inside other objects, rather than Vector3.new which places objects on top of other objects. CFrame.new is also different because it brings along objects that are welded to the object you are CFraming, Vector3 moves the part and detaches its welds.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
22 Mar 2013 04:02 PM
http://www.youtube.com/watch?v=WgrBt5fQ5xg
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