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: Vector3.Value.X

Previous Thread :: Next Thread 
doneyes is not online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
30 Jun 2013 10:24 AM
I know for most Vector3's you can say: part.Position.X and get the X value. How can this be done for Vector3Values?
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
30 Jun 2013 10:25 AM
Vector3Value.Value.X

...?
Report Abuse
doneyes is not online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
30 Jun 2013 10:25 AM
SpawnPosition.Value.Z = 1


"Z can not be assigned to."
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
30 Jun 2013 10:28 AM
local X, Y, Z = SpawnPosition.Value.X, SpawnPosition.Value.Y, SpawnPosition.Value.Z
SpawnPosition.Value = Vector3.new(X, Y, 1)

Hmmm?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
30 Jun 2013 10:31 AM
Umm, dude.

game.Workspace.Part.Position = game.Workspace.Part.Position + Vector3.new(0,0,0)
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
30 Jun 2013 10:31 AM
That would only change ONE axis since its pluss its position. If you change one.
Report Abuse
doneyes is not online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
30 Jun 2013 10:34 AM
Yeah I got it working with something like that. Thanks
Report Abuse
doneyes is not online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
30 Jun 2013 10:35 AM
That was directed to desp
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
30 Jun 2013 10:40 AM
you can't assign an individual coordinate of a Vector3. the X, Y, and Z properties are read-only
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