Script isnt working gui

You can write your topic however you want, but you need to answer these questions:

  1. open gui

  1. *i testing changeing name of frame but not working
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local button = script.Parent
local frame = script.Parent.Parent.very.Visible
frame = false
button.MouseButton1Click:Connect(function()
	frame = true
end)

2 Likes

You cannot directly reference the boolean here. Reference the instance and change the boolean in the function.

local button = script.Parent
local frame = script.Parent.Parent.very
frame.Visible = false
button.MouseButton1Click:Connect(function()
	frame.Visible = true
end)
2 Likes

still dont working i just isnt work

1 Like

i just added .visble and working thank you

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.