Chat button for my roblox game

Im trying to make a gui button that opens the chat frame for my game instead of that one on the top but im unsure how to do it or it is even possible.

local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
player.PlayerGui.Chat.Frame.Visible = true
 end)

Put this in the button
Wrote this on mobile, sorry for possible errors

1 Like

You can also do open it how you open the other frames and you can disable the chat

Open frame

Script.Parent.MouseButton1Click:Connect (function()
Script.Parent.Parent.frame.Visible = treu -- parents where your frame is
end)
1 Like