Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Cannot get gui to open after clicking button. help?

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

(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)
Ad

Answer this question