Here I have an imageLabel I want to set a textLabel’s position to the imageLabel’s position with a slight offset. But it wont work here is my code;
textLabel.Position = image.Position + UDim2.new(0,1,0,0)
Here I have an imageLabel I want to set a textLabel’s position to the imageLabel’s position with a slight offset. But it wont work here is my code;
textLabel.Position = image.Position + UDim2.new(0,1,0,0)
That code seems like it should work? What’s the actual issue?
instead it just sets the udim position to the position I tried to add. So it would print textlabels position to be 0,1,0,0
I tried the exact same code with a bigger offset and mine worked perfectly fine?
local Label = script.Parent.TextLabel
local Image = script.Parent.ImageLabel
Label.Position = Image.Position + UDim2.new(0, 50, 0, 0)
Wait I am so sorry I fixed it, it was a stupid mistake I made.
One more thing. I don’t know what you are programming and what the code is so what your currently doing may be fine though it’s recommended you use scale instead of offset so it works on all devices and looks correctly.
Yes I am using scale not offset.