GUI does not go where it should go

So I tried to set the start position of this image label but it doesn’t go where I want to go.

script:

local template1 = script.Parent.Template1

template1.Position = UDim2.fromScale(-0.027, 0,0.953, 0)

Another thing to add is my scripting is quite limited and also I have very little experience with GUIs

1 Like

fromScale, expects 2 things, the XScale to use and the YScale to use, So change it to

UDim2.fromScale(-0.027,0.953)
1 Like

Thank you, works like a charm


I have another question though, how would I keep changing the y so it would go up, I tried while true do loops but I don’t think they seem to work.

Edit: maybe tweening?

You don’t really need to use a while true do loop here, you can use TweenPosition

template1:TweenPosition(UDim2.fromScale(-0.027,0))

This would tween it to YScale 0 in 1 second, you can read up on the arguments it expects to know how to make it take longer

1 Like

Thanks a lot, I hope you don’t mind me bumping this thread if I have more questions.

1 Like

If you have more questions I think it’s best you either message me on the DevForums or make a new post about it since it would kinda go a bit off topic from the original question

1 Like

Alright, Thanks a lot, I will do so if I have more questions.