[HELP] Database to Vector3

I made a system to save the position, but when trying to use the data from databate I get an error:

local u_posx = Users[GetPlayerName(source)][‘posx’]
local u_posy = Users[GetPlayerName(source)][‘posy’]
local u_posz = Users[GetPlayerName(source)][‘posz’]
print(u_posx, u_posy, u_posz)
local p_pos = Vector3(u_posx, u_posy, u_posz)
print(p_pos)

The first print works, but when i try to put in to a Vector 3 give me an error, and “tonumber” don’t work :confused:

It says the value doesn’t exist.

But it works at the first print :confused:

I think I have to convert them, but i don’t know how

Edit:
solved, I used the tonumber() and add +0.1
to turn it into a float.
I hate lua :angry:

@Tharkas said in [HELP] Database to Vector3:

But it works at the first print :confused:

I think I have to convert them, but i don’t know how

Edit:
solved, I used the tonumber() and add +0.1
to turn it into a float.
I hate lua :angry:

Haha, you should probaly make a simple function todo it. Like tofloat()