Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I get the y value of a vector3 position??

Asked by 8 years ago

I want to get the x,y, and z values of a position separately.

0
you could click the accept answer button if my answer helped theCJarmy7 1293 — 8y
0
I 'm new to the website;I don't know where to click/ Jarvan_lv 0 — 8y
0
Look under my name on the answer. See my character iimage? Look under that, and see the buttons. Look for the one that says accept answer theCJarmy7 1293 — 8y
0
Don't see it. Jarvan_lv 0 — 8y
View all comments (2 more)
0
Woops, I wasn't logged in for some reason. Jarvan_lv 0 — 8y
0
oh lol theCJarmy7 1293 — 8y

1 answer

Log in to vote
1
Answered by
theCJarmy7 1293 Moderation Voter
8 years ago

Like this!

local vect = Vector3.new(1,2,3)
local x,y,z = vect.X,vect.Y,vect.Z
print(x..y..z) --should print 123
print(vect.X) --will print 1
0
ty Jarvan_lv 0 — 8y
Ad

Answer this question