Here are the scripts:

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)


local Button = script.Parent Frame = script.Parent.Parent.open

function onClick() if Frame.Visible == false then Frame.Visible = true elseif Frame.Visible == true then Frame.Visible = false end end

Button.MouseButton1Click:connect(onClick)


Why do screen gui buttons not work at all in a server but only in test mode??