Ok, so, I'm trying to make a chat button on the topbar but the visible code won't work, I need help
local ChatButton = script.Parent.Bar:WaitForChild("Chat") local ChatTarget = script.Parent.Parent.Parent.Chat.Frame ChatButton.MouseButton1Click:connect(function() if ChatTarget.Visible then ChatTarget.Visible=false else ChatTarget.Visible=true end end)
ChatButton.MouseButton1Click:Connect(function() ChatTarget.Visible = not ChatTarget.Visible print"Gui toggled!" --Add a print to make sure its working. end)