Whenever I try it in test mode, it works just fine. Except whenever I try it in game, it fails. I have no clue why.
local Button = script.Parent
Frame = script.Parent.Parent.Frame
function onClick()
if Frame.Visible == false then
Frame.Visible = true
elseif Frame.Visible == true then
Frame.Visible = false
end
end
Button.MouseButton1Click:connect(onClick)
Layout - http://prntscr.com/gp3wya

1 comment
https://forum.scriptinghelpers.org/topic/189/please-share-links-correctly