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 » Scripters
Home Search
 

Re: Help Scripting

Previous Thread :: Next Thread 
Samson918 is not online. Samson918
Joined: 15 Apr 2012
Total Posts: 174
23 Nov 2016 09:12 PM
How do I reference one of the three values in a Vector3?

For exmple

a = Vector3.new(1, 2, 3)
blah = a.(3rd number in the vector3)

How do I give blah that value???



I'm trying to make a laser that leaves a gun and travels towards a nearby player. I found a function that returns the vector3 position of the nearest player, how can I separate it into into its three values
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
23 Nov 2016 09:18 PM
blah = a.Z
Report Abuse
Samson918 is not online. Samson918
Joined: 15 Apr 2012
Total Posts: 174
23 Nov 2016 09:29 PM
Thanks! That seemed to work
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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