Where it is or where I have it game.StarterGui.ScreenGui.Frame & game.StarterGui.ScreenGui.TextButton.Script
The TextButton.Text.Value = Menu
Test Place: www.roblox.com/games/658003394/Open-Close-Animation-Gui-Test-Place
The Script: (Normal)
debounce = false
script.Parent.MouseButton1Click:connect(function()
if not debounce then
debounce = true
if script.Parent.Text == "Menu" then
-- Open function
script.Parent.Parent.Frame.Visible = true
for i = 1,25 do
script.Parent.Parent.Frame.Size = script.Parent.Parent.Frame.Size + UDim2.new(0.02,0,0,0)
wait()
end
for i = 1,8 do
script.Parent.Parent.Frame.Position = script.Parent.Parent.Frame.Position - UDim2.new(0,0,0,0)
wait()
end
for i = 1,20 do
script.Parent.Parent.Frame.Size = script.Parent.Parent.Frame.Size + UDim2.new(0,0,0.0225,0)
wait()
end
script.Parent.Text = "Close"
else
--Close function
for i = 1,25 do
script.Parent.Parent.Frame.Size = script.Parent.Parent.Frame.Size - UDim2.new(0,0,0.02,0)
wait()
end
for i = 1,8 do
script.Parent.Parent.Frame.Position = script.Parent.Parent.Frame.Position + UDim2.new(0,0,0,0)
wait()
end
for i = 1,20 do
script.Parent.Parent.Frame.Size = script.Parent.Parent.Frame.Size - UDim2.new(0.0225,0,0,0)
wait()
end
script.Parent.Parent.Frame.Visible = false
script.Parent.Text = "Menu"
end
debounce = false
end
end)

1 comment
Hm