thank you! ive been struggling with this for a while now
this is the script ive used for it to work if anyone else needs it:
local open = script.Parent
local info = game.Players.LocalPlayer.PlayerGui:WaitForChild(“Ui’s itself”)[“Information (opened)”]
open.MouseButton1Click:Connect(function()
if info.Visible == false then
info.Visible = true
else
info.Visible = false
end
end)