Gui Opening Button Issue (I SOLVED IT)

Im making a open to make gui visible but it dont work my code is

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Helper.Visible = true
end)

the output says

Help is not a valid member of Frame “Players.3DRobloxGameDev.PlayerGui.Options.Startup.Body.TopBar.Right”

Instead of doing * Script.Parent.Parent.Parent.Parent… *

do this

local player = game.Players.LocalPlayer
local playerGui = player.PlayerGui
local Button = script.Parent

Button.MouseButton1Click:Connect(function()
playergui.Option.Startup.Startup.Body.TopBar.Right.Helper.Visible = true
end)

Output said:

Help is not a valid member of Frame “Players.3DRobloxGameDev.PlayerGui.Options.Startup.Body.TopBar.Right”

Here is my explorer

explorer

Yay you fixed it

(character limit)

1 Like