Position Issues

I am trying to make something where you buy something sounds easy enough until i realize ive never worked with position before so none of my research works does anyone mind telling me how i can move the gloves 2.3 studs down?

	RightGloveClone.Position = Vector3.new(0, (RightGloveClone.Position + YValue), 0)
	leftGloveClone.Position = Vector3.new(0, (leftGloveClone.Position + YValue), 0)
end)
1 Like

You’re on the right track!
If you set the x, and z to 0 it will go world origin (+ yPosition)
so we’re getting the already existing X and Z position of the part and moving it down 2.3 studs.
(i replaced YValue with 2.3, put it back if you want)

RightGloveClone.CFrame = Vector3.new(RightGloveClone.Position.X, RightGloveClone.Position.Y - 2.3, RightGloveClone.Position.Z
RightGloveClone.CFrame = Vector3.new(RightGloveClone.Position.X, RightGloveClone.Position.Y - 2.3, RightGloveClone.Position.Z

If this is a model and not a part, it gets a little more complicated

When i use that i get this error
MALDWMKLADWMKLAWDMLK

1 Like

Oh, my bad

RightGloveClone.Position = Vector3.new(RightGloveClone.Position.X, RightGloveClone.Position.Y - 2.3, RightGloveClone.Position.Z
leftGloveClone.Position = Vector3.new(leftGloveClone.Position.X, leftGloveClone.Position.Y - 2.3, leftGloveClone.Position.Z

errors gone however it didnt really fix the issue because i look at it and it still kinda just stays in the middle of the arms when it should be acting as gloves

maybe theres an easier way like a different constraint?

I can give you the full script btw

fixed it after tweakin with the code you gave

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.