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

Cannot get gui to open after clicking button. help?

Heres my code

local frame = game.StarterGui.balls.testicles

script.Parent.MouseButton1Click:Connect(function() if frame.Visible == false then frame.Visible = true end end)

I've tried .Visible I've tried .Enabled. I can't seem to get it to work.

1 answer

(Not Trying To Be Rude) Well Your Code Is A Bit Messy But I Think This
Would Help;

local StarterGui = game:GetService('StarterGui')

local MainFrame = StarterGui.balls.testicles
local Button = script.Parent


Button.MouseButton1Up:Connect(function()

 MainFrame.Visible = true

end)

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