I am fairly new to Lua, and I am trying to make a game in Roblox. I am currently working on an open and close button on my Miner GUI.
Code
local Frame = script.Parent.Parent.Parent.Parent.Parent.MinerGuiManager.MinerFrame
local Opened = false
if Opened == false then
print('Gui Is Closed')
Opened = true
end
if Opened == true then
print('Gui Is Opened')
end
script.Parent.Button.MouseButton1Click:connect(function()
GUI:TweenPosition(UDim2.new(1, 0, 1, 0),'Bounce',1.5)
end)
I want the GUI to disappear and reappear