can someone tell me a open script n roblox

[Y4P] C0etepus
Joined 09/06/2021
Posts 94
07:36 AM 13/10/2021
tell me pls the screen gui open and close button


[Fruit] Evil-uz1
Joined 09/06/2021
Posts 1,987
07:40 AM 13/10/2021
open script script.Parent.MouseButton1Click:Conne(function()
script.Parent.Parent.Visible = false
end)

close
local frame = script.Parent.Parent.name
local open = false

script.Parent.MouseButton1Click:Connect(function()
if frame.Visible = true
else
frame.Visible = false
end
end)


[Fruit] Evil-uz1
Joined 09/06/2021
Posts 1,987
07:41 AM 13/10/2021
that script is Local script


[Y4P] C0etepus
Joined 09/06/2021
Posts 94
07:42 AM 13/10/2021
thx bro

1