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 and Vector3 assiagning XYZ

Previous Thread :: Next Thread 
AkinoriSenju is not online. AkinoriSenju
Joined: 17 Jan 2011
Total Posts: 28
07 Dec 2013 09:38 AM
Alright, so I want to make a player teleport to the top a brick, but I want them to teleport to the top where they're standing in the brick, How do I assign individual values for X,Y, and Z, So the torsos X and Z positions stay the same, but the Y value changes?

Torso.CFrame = CFrame.new(x,y,z)
Report Abuse
AkinoriSenju is not online. AkinoriSenju
Joined: 17 Jan 2011
Total Posts: 28
07 Dec 2013 09:39 AM
That is a really bad Title typo..
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
07 Dec 2013 09:40 AM
Whatever.CFrame = Whatever.CFrame + Vector3.new(0,9001,0)
Report Abuse
AkinoriSenju is not online. AkinoriSenju
Joined: 17 Jan 2011
Total Posts: 28
07 Dec 2013 09:49 AM
Alrighty, but there is still no way to state the Y value. D:

Torso.CFrame = script.Parent.CFrame + Vector3.new(0,(Y pos of brick * 2),0)
Report Abuse
AkinoriSenju is not online. AkinoriSenju
Joined: 17 Jan 2011
Total Posts: 28
07 Dec 2013 09:54 AM
B[1]
Report Abuse
brinkokevin is not online. brinkokevin
Joined: 25 Jul 2012
Total Posts: 1673
07 Dec 2013 09:55 AM
do CFrame*CFrame
its bether than CFrame+Vector3
Report Abuse
AkinoriSenju is not online. AkinoriSenju
Joined: 17 Jan 2011
Total Posts: 28
07 Dec 2013 09:57 AM
Ok, but still I need to know how I can assign that Y value.
Report Abuse
longbow12 is not online. longbow12
Joined: 20 Sep 2008
Total Posts: 565
07 Dec 2013 10:00 AM
Assign the y value of the brick a variable for example

Torso.CFrame = CFrame.new(x,(b.CFrame.y),z)

b representing the brick you want.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
07 Dec 2013 10:26 AM
Torso.Position = Vector3.new(x,y,z)


will automaticly teleport you up it?
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