|
You both are having a babyish argument. It takes two to argue you know. Just ignore him |
|
|
You both are having a babyish argument. It takes two to argue you know. Just ignore him [2] |
|
|
|
Really? I'm a noob? Last I remember, you were begging for my chat gui from oclange.
Also, you are my friend but I won't support you in an argument that I don't think should have happen. |
|
|
stop trying to start a babyish argument.
last time i remember, you had a huge argument on the scripters forum.
what does me wanting your gui have to do with this, that was a long while ago.
i only wanted your gui because it had something i wanted to figure out how to do.
then i realized you didn't script it, but checked a box. |
|
|
what makes you think i was talking about you?
stop bumping this, conversation over |
|
|
|
bump
When I looked up "Ninjas" in Thesaurus.com, it said "Ninja's can't be found" Well played Ninjas, well played. |
|
|
print(Vector3.new(("1, 2, 3"):match("(%d+), (%d+), (%d+)"))) |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
You'll have to tonumber it, I don't think Roblox will autoconvertit for you and you'll just end up with a (0, 0, 0) vector (also this question was answered on page 1 c;) |
|
|
^ Doesn't work for doubles, though. |
|
|
I am confused af.
When I looked up "Ninjas" in Thesaurus.com, it said "Ninja's can't be found" Well played Ninjas, well played. |
|
|
"stop trying to start a babyish argument.
last time i remember, you had a huge argument on the scripters forum.
what does me wanting your gui have to do with this, that was a long while ago.
i only wanted your gui because it had something i wanted to figure out how to do.
then i realized you didn't script it, but checked a box."
1. Yes, I did but that doesn't mean you should. I learned my lesson.
2. You called me a noob when you wanted my work
3. ^
4. I did script it... |
|
|
Guys, seriously.
local vec = "0, 0, 0"
local v3 = Vector3.new(vec)
This works, I tested it out in Studio last night and again today just to make sure. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
That doesn't work, it's because it's defaulting back to 0,0,0.
Change those numbers to 1, 2, 3 and see if you get 1, 2, 3. |
|
|
Try numbers other than 0. |
|
|
|
Long and ugly, but works for doubles.
print(Vector3.new(("1.1, 2.2, 3"):match("(%d+[%.%d]*), (%d+[%.%d]*), (%d+[%.%d]*)"))) |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
nox and dermon already posted similar solutions yo |
|
x_oJoin Date: 2015-06-04 Post Count: 4378 |
I think mine is still the best
local function StringToVector3(str)
local x, y, z = string.match(str, "(.+), (.+), (.+)")
return Vector3.new(tonumber(x), tonumber(y), tonumber(z))
end
print(StringToVector3("-1, 2.2, 1e6"))
-> -1, 2.20000005, 1000000
/I have none to show to the one I love/ |
|
|
nah, mine's the best
cool story fish |
|
|
ok.. now this is the best of all:
local String = "10, 10, 9"
game.Workspace.Part.Position = Vector3.new(string.match(String, "(.+), (.+), (.+)")) |
|
|
|
|
Ugh. You start a fight with him then you get mad at me saying that the fight is babyish. WHO CARES if you're wrong or right. You started it by calling him an idiot. You could have pointed out how he's wrong instead. |
|