Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Not working TextButton Click does not work Someone will help?

Hi, I have a problem when I click on the button on the normal "Game" in roblox And the button does not work and the studio roblox works And there is no error in the console

Here is code:

local frame = script.Parent
local close = frame:WaitForChild("Close")
local open = frame.Parent:WaitForChild("Open")

open.MouseButton1Click:connect(function()
 open.Visible = false
 frame.Visible = true
end)

close.MouseButton1Click:connect(function()
 open.Visible = true
 frame.Visible = false
end)

1 answer

✓ Accepted answer

:connect is deprecated, use :Connect

This discussion is preserved as it was. New answers, comments, and votes are closed.