Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

(Easy) why doesnt this script set the position of the other gui?

Asked by 4 years ago

very simple, just havent worked with position in a while

https://gyazo.com/af4093136137ae5c86181b8506570359


script.Parent.Text = ("Start?") script.Parent.MouseButton1Click:Connect(function(Clicked) script.Parent.Parent.Frame.YouWin.Position = {0.089, 0},{0.179, 0} end)

1 answer

Log in to vote
0
Answered by 4 years ago

At this line

script.Parent.Parent.Frame.YouWin.Position = {0.089, 0},{0.179, 0}

Instead of doing that, do this:

script.Parent.Parent.Frame.YouWin.Position = UDim2.new({0.089, 0},{0.179, 0})

If that doesn't work, try using the second parameter (Offset) to change the position.

-Ducky

Developer

Youtuber

0
It works but it puts it in the same position each time no matter the numbers? snipperdiaper 120 — 4y
0
Use offset then Official_DuckyYT 55 — 4y
Ad

Answer this question