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

How do you add two Vector3 values?

Hey, just a quick question thing. How can you add two Vector3 values? Do you just do

Vector3.new(12, 0, 9) + Vector3.new(-9, 0, 19)

1 comment

1

ya... you can literally test it in studio

2 answers

Add two vector3 in vars

local v = Vector3.new(12, 0, 9) + Vector3.new(-9, 0, 19)

Add vector3 to object's property

game.Workspace.Part.Position += Vector3.new(10,10,10)

Print added vector3s

print(Vector3.new(10,10,10) + Vector3.new(10,10,10))

2 comments

0

Dont use a + between Vector3.new(10,10,10) and Vector3.new(10,10,10) jus use a double point so you will get someting like this: print(Vector3.new(10,10,10) .. Vector3.new(10,10,10))

0

He asked for adding, not printing it both

don't use a + between Vector3.new(10,10,10) and Vector3.new(10,10,10) just use a double point, something like this

Print(Vector3.new(10,10,10)..Vector3.new(10,10,10))

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