Box = game.StarterGui.ScreenGui.Frame.Chatbox
function leftClick()
Box.Text = ""
end
function rightClick()
Box.Text = ""
end
script.Parent.MouseButton1Click:Connect(leftClick)
script.Parent.MouseButton2Click:Connect(rightClick)
Error: None
I am trying to make it when someone clicks the button it clears all text in the textbox

4 comments
Do you have Chatbox set to a variable?
No
https://i.gyazo.com/69664a93143c7f7bf1845c756abe6655.png is the layout did not show up in the original post for some reason
Just added the variable and I get no errors this time but still does not work