filmov
tv
How to make a Open and Close GUI
Показать описание
hello guys ill be showing you how to make a Open and Close GUI
Scripts:
local frame = script.Parent.Parent.Test -- change the "Test" to the name of your frame so it works
local open = false
script.Parent.MouseButton1Click:Connect(function()
if frame.Visible == false then
frame.Visible = true
end
end)
---------------------------------------------------CLOSE SCRIPT-------------------------------------------------
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
Timestamps:
0:00 Intro
0:10 Making GUI
1:10 Making Close Button
1:55 Script for Close Button
2:13 Making Open Button
3:14 Script for Open Button
3:20 Testing...Failed?
3:36 Testing Succes!
3:42 Outro
Scripts:
local frame = script.Parent.Parent.Test -- change the "Test" to the name of your frame so it works
local open = false
script.Parent.MouseButton1Click:Connect(function()
if frame.Visible == false then
frame.Visible = true
end
end)
---------------------------------------------------CLOSE SCRIPT-------------------------------------------------
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
Timestamps:
0:00 Intro
0:10 Making GUI
1:10 Making Close Button
1:55 Script for Close Button
2:13 Making Open Button
3:14 Script for Open Button
3:20 Testing...Failed?
3:36 Testing Succes!
3:42 Outro