How would I make a Vector3Value = the value of another Vector3Value, but, subtracts (1) from Vector3.x ? Below is what I have tried...
while wait(1) do script.Parent.Parent.Value = script.Parent.Parent.Parent.Off.Value.x - 0.635 wait(6) end
It's almost always better to do math with full Vector3
s rather than to do the .x
, .y
, etc yourself.
You want to subtract something from Off.Value
. So we should be expecting something like:
Off.Value - something
something
should have 1
as an x
value, and it shouldn't affect y
or z
. blah - 0
is still blah
, y
and z
should be 0
.
Off.Value - Vector3.new( 1, 0, 0 )