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: Beginner's Guide to CFrame

Previous Thread :: Next Thread 
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:33 PM
CFrame stands for Coordinate Frame, so as you could guess, it means where the brick is.
Lets say you have a block positioned at 0,0,0. The 0,0,0 is X,Y, and Z.
So if you wanted to move it lets say, 20 studs up, you would use the Y and put this: game.Workspace.YourPartHere.CFrame = CFrame.new(Vector3.new(0,20,0)

What I did was I gave the part's CFrame a new CFrame, and positioned it using a Vector3 value. Vector3 is commonly used for positioning. This line above would simply move the brick 20 studs up if it was originially positioned at 0. If you wanted to rotate the brick, it would be a bit more complicated. Since this is for beginners, I will go more into simply moving it. If you want the brick to move to a certain position, then you find that positions coordinates first, which should be something like (0,0,0). It will not be 0,0,0 though. Once you find the corrdinates, use the line I mentioned before:
game.Workspace.YOURPARTHERE.CFrame = CFrame.new(Vector3.new(0,0,0)
Put the position where 0,0,0 is. Simple enough, right?
If you want to dive more in CFrame, use the Wiki, as it offers a more complete understanding of this concept.

~xXTheRobotXx, Cyborg of OT~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
01 Sep 2012 04:34 PM
Just skimming, you forgot a parenthesis at the end of your first example.

(>•д•)> ¤¤ †KMXD† ¤¤ [SHG Tier~3] (^•д•^) [Freelancing Scripting Guru] <(•д•<)
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:35 PM
If anyone else finds errors, tell me

~xXTheRobotXx, Cyborg of OT~
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:36 PM
Where I put the line, use this instead

game.Workspace.YOURPARTHERE.CFrame = CFrame.new(Vector3.new(0.0.0))

~xXTheRobotXx, Cyborg of OT~
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
01 Sep 2012 04:37 PM
The other example too. :P

(>•д•)> ¤¤ †KMXD† ¤¤ [SHG Tier~3] (^•д•^) [Freelancing Scripting Guru] <(•д•<)
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:38 PM
I just didn't want people to get mislead from that other terrible guide

~xXTheRobotXx, Cyborg of OT~
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
01 Sep 2012 04:38 PM
Not gonna explain what a CFrame is or anything about the matrix math involved in getting angles? Or even how to rotate the cframe? How to set the lookVector? The math used behind all of the CFrame methods? The different properties of CFrame?
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:39 PM
I said it was for beginner's and that i would not get into more intermediate stuff

~xXTheRobotXx, Cyborg of OT~
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 04:41 PM
I want that Money guy to make a CFrame guide, he understands CFrame almost 100%

(>•д•)> ¤ ¤ † KMXD 2.0 † ¤ ¤ [SHG Tier~ nil] (^•д•^) [KMXD Stole this sig] <(•д•<)
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:42 PM
You should PM him and ask him, chop

~xXTheRobotXx, Cyborg of OT~
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
01 Sep 2012 04:42 PM
This isn't even a beginners guide if none of that stuff is included. This is more of like a thesis statement that was improperly written. Also you didn't define a CFrame right nor explain any of the code you gave properly, nor cover any of the basics that are required for any tutorial.

What's this other "horrible guide" that could mislead people? It would have to be really bad if this covers more than it did.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 04:42 PM
Monkey**

It was something like


xlxlMoneylxlx idk

(>•д•)> ¤ ¤ † KMXD 2.0 † ¤ ¤ [SHG Tier~ nil] (^•д•^) [KMXD Stole this sig] <(•д•<)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
01 Sep 2012 04:43 PM
The one with two pages.

(>•д•)> ¤¤ †KMXD† ¤¤ [SHG Tier~3] (^•д•^) [Freelancing Scripting Guru] <(•д•<)
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:43 PM
Oh great, I got a hater

I defined CFrame in my first line rayoma..

~xXTheRobotXx, Cyborg of OT~
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
01 Sep 2012 04:46 PM
And I told you you defined it wrong.

> CFrame stands for Coordinate Frame, so as you could guess, it means where the brick is.

A CFrame has nothing to do with a brick. It's a position matched up with a rotational matrix. BasePart's have a property for a CFrame but it isn't a brick. And then

> Lets say you have a block positioned at 0,0,0. The 0,0,0 is X,Y, and Z.

Is not an adequate description of a CFrame either.
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:47 PM
Im just gonna ignore you now

~xXTheRobotXx, Cyborg of OT~
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
01 Sep 2012 04:47 PM
At least read the wiki on CFrame and understand what you're talking about before trying to make a tutorial on it.

wiki.roblox.com/index.php/CFrame
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:48 PM
I said in my tutorial to read the wiki if you wanted a better understanding

~xXTheRobotXx, Cyborg of OT~
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 04:51 PM
@Xxchop

xXxmonkeymanxXx?

~xXTheRobotXx, Cyborg of OT~
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 05:02 PM
Ahh, yes

(>•д•)> ¤ ¤ † KMXD 2.0 † ¤ ¤ [SHG Tier~ nil] (^•д•^) [KMXD Stole this sig] <(•д•<)
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 05:05 PM
No wonder. I saw him in script builder creating some nifty scripts

~xXTheRobotXx, Cyborg of OT~
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