What i'm trying to do is nothing fancy, but uses UDim2's which i am not familiar with. What i am attemping to do is just have my GUI slide off the screen, and back to it's original place when triggered by the press of a button. Here's all my code so far, because i'm not sure what y'all might need.
--RapperdoesMC
--[[Random stuff]]--
--{0, 1550},{0, 600} -closed
--{0, 1417},{0, 600} -open
--[[Variables]]--
open = nil;
togBut = script.Parent.Frame.ToggleButton;
fra = script.Parent.Frame;
this = script;
closedPos = {0, 1550},{0, 600}
openPos = {0, 1417},{0, 600}
--[[Functions]]--
function toggleMenu()
print('Toggle pressed!');
if open == true then
--Close the menu, because it is open.
else
--Open the menu, because it is closed.
end;
end;
script.Parent.Frame.ToggleButton.MouseButton1Down:connect(toggleMenu)
