Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

6 comments

0

you could click the accept answer button if my answer helped

0

I 'm new to the website;I don't know where to click/

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

0

Don't see it.

0

Woops, I wasn't logged in for some reason.

0

oh lol

1 answer

✓ Accepted answer

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

1 comment

0

ty

This discussion is preserved as it was. New answers, comments, and votes are closed.