You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? I want to fix my gui script so that when the gui button is clicked, the target ui will become visible.
What is the issue? The script is not working.
What solutions have you tried so far? Looking on devforum, repeatedly checking heirachy of object in the explorer tab.
Here is the code:
local Button = script.Parent
local TargetUI = game.StarterGui.Ysup.TextLabel
Button.MouseButton1Click:Connect(function()
print("the button works")
if TargetUI then
print("TargetUI found")
TargetUI.Visible = true
else
warn("TargetUI not found!")
end
end)