Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

2 comments

0

It works but it puts it in the same position each time no matter the numbers?

0

Use offset then

This discussion is preserved as it was. New answers, comments, and votes are closed.