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

How would you make a Help Gui Open?

Asked by
ali119 0
10 years ago

I've tried over and over again for trying to make it so when you clicked a button a help gui would come up.

2 answers

Log in to vote
0
Answered by
Hybric 271 Moderation Voter
10 years ago
function Hybric()
if script.Parent.Parent.HelpLabel.Visible == false then
script.Parent.Parent.HelpLabel.Visible = true
script.Parent.Name = "Close Help"
else
if script.Parent.Parent.HelpLabel.Visible == true then
script.Parent.Parent.HelpLabel.Visible = false
script.Parent.Name = "Open Help"
end
end
end

script.Parent.MouseButton1Down:connect(Hybric)

Make a Gui, put a text button in it. Then, put a TextLabel into the StarterGui. Change the Textlabel's name to "HelpLabel"

0
BE SURE THAT THIS SCRIPT IS IN THE TEXT BUTTON!! Hybric 271 — 10y
0
Thank you! ali119 0 — 10y
0
No problem. Hybric 271 — 10y
Ad
Log in to vote
0
Answered by
LevelKap 114
10 years ago

--I would make a localscript and script the gui by hand. Or you could insert a Gui in starterpack and when clicked, make it visible, when clicked again, it will become invisible.

--Example: Make a gui place text labels and space them out on the Y-axis so they dont overlap. --Write the text u want and then place a script into the main gui(screengui) --Next write you onClicked function(Button1Down) then use this loop

for i, v in pairs(v:GetChildren())
    if v.Visible == false then
        v.Visible = true 
    else
        v.Visible = false
    end

end

--U can add a debounce as well

Answer this question