X cannot be assigned to

  1. What do you want to achieve? Keep it simple and clear!
    - I want to change the x position of this ImageLabel with an UDim.

  2. What is the issue? Include screenshots / videos if possible!
    - I keep getting sent the same error mentioned in the title of the post.

Bilde_2025-01-28_210437981

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    - I tried to look on the dev forum but only found either posts about UDim2, which was NOT
    what i searched for, or it would be about UDim but it would be irrelevant compared to my
    situation, i also looked for tutorials on YouTube, but the only kind of relevant video was talking
    about UDim2’s, which was again, not what i searched for.
script.Parent.ScreenGui.watch.wristwatch.Position.X = UDim.new(-0.555, 0)

You can’t set the coordinate of a position, you must do

wristwatch.Position = UDim2.fromScale(-0.555,Y)
4 Likes

So by “Y” you mean the already existing y axis scale from the gui? (sorry if im speaking spaghetti language im really tired.)

1 Like

Essentially, yes. I use fromScale because it’s shorter. You also have fromOffset.

1 Like

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