I have a pretty good idea of how to do this, but I can’t seem to figure it out. here is my idea:
local Button1 = script.Parent
local function onButtonActivated()
-Move The Gui right
-Wait Three Seconds
Script.Parent.Enabled = false
end
Button1.Activated:Connect(onButtonActivated)
I just don’t know what the Move the Gui Right or Wait Three Seconds is.
Where the position at a corner of the screen would be
Sorry for the edits, I understand now you need help with the properties.
The position of the frame/gui is a Udim2, with X and Y.
{(1,0),(2,0)}
1 is the position of X, 0 being its offset.
2 is the position of Y, 0 being its offset.
Guiframe.Position = Udim2.new(1,0,2,0)
This would set the position to the edge of the screen and raise it out of bounds because of Y being larger than 1, which is the edge.
{1,0}
{1,0}
{A,B}
-- A is position, B is offset
-- Position is based on total screen size, as a ratio.
--`Offset is how many pixels you're translating, but
-- you can choose to use either one as you see fit
If you go larger than 1 or lower than 0, it will offset out of bounds. You can also use the API to get the user screen size in pixels, and position it based off that!