I followed a tutorial for the code, and the visibility button wont work, also i am a very new person to coding on Roblox/Lua, so please take it easy on me and explain it briefly, also i placed the GuiToggle Frame and Localscript into starterplayers, i went on a twitch stream to get help and he told me to place it there.
local frame = script.Parent.Frame script.Parent.Toggle.
MouseButton1Click:Connect(function()
if frame.Visible == true then
frame.Visible = false
else
frame.Visible = true
end
end)

2 comments
Could you please show us the code? We can't help if we can't see.
I edited it for the code.