Its not working here it is
frame.MouseButton1Click:connect function()
if frame.Visible = false
then frame.Visible = true
Just parent this LocalScript to infoframe..
script.Parent.MouseButton1Down:Connect(function() if not script.Parent.Visible then script.Parent.Visible = true end end)