How do you get the specific x,y,z coordinates from a vector?

Like how would I save just the x coordinate as a variable for example?

# Getting coordinates from vectors (SOLVED)

**KevinT**#1

0 Likes

**JustAPotota**#2

```
local my_vector = vmath.vector3(78, 42, 61)
local x = my_vector.x -- 78
local y = my_vector.y -- 42
local z = my_vector.z -- 61
```

4 Likes