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

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

code used:

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

1 answer

✓ Accepted answer

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)

1 comment

0

error: Expected identifier when parsing expression, got '*'

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