#trying to make a simple script that toggle a frame visible by clicking a textbutton

1 messages · Page 1 of 1 (latest)

buoyant dagger
#
local button = script.Parent
local lobbyUI = button.Parent.Parent -- LobbyUI ScreenGui
local hostMatch = lobbyUI:WaitForChild("HostMatch")

button.MouseButton1Click:Connect(function()
    hostMatch.Visible = not hostMatch.Visible
end)

chatgpt give me this

#

ahh realizing now 🙂