Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

attempt to perform arithmetic on field 'Y' (a userdata value) fix?

Asked by
u1v6 22
4 years ago

code used:

script.Parent.Place.Position = Vector3.FromAxis(Enum.Axis.Y(Enum.Axis.Y + 10))

1 answer

Log in to vote
0
Answered by 4 years ago

Vector3.FromAxis only accepts 1 argument, that being the Enum.Axis, nor is Enum.Axis.Y a function which you can call. If you need to add an additional 10 studs to any axis which you made you can do:

Vector3.FromAxis(Enum.Axis.Y) * Vector3.new(10, 10, 10)

0
error: Expected identifier when parsing expression, got '*' u1v6 22 — 4y
Ad

Answer this question