What's wrong with this script?

script.Parent.MouseButton1Click:Connect(function()
script.Paren.Parent.Frame.Visible = not script.Parent.Parent.Frame.Visible
if script.Parent.Parent.Frame.Visible == true then
script.Parent.Text = “Close”
else
script.Parent.Text = “Stats”
end
end)

Small typo over here, try changing “Paren” to “Parent”.

Nvm I had a typo “Paren” :joy::sweat_smile::sob:lol