|
| 08 Dec 2016 05:53 PM |
I've been trying to figure out how to make a GUI with a PWord needed to make it fade away. I've tried many ways to do it, but nothing is working out.
𝒜𝓁𝑒𝓍𝒶𝓃𝒹𝓇𝒾𝒶 |
|
|
| Report Abuse |
|
|
Aliics
|
  |
| Joined: 29 Sep 2014 |
| Total Posts: 471 |
|
|
| 08 Dec 2016 06:02 PM |
TextBox
--LocalScript instead of TextBox
Player = game.Players.LocalPlayer Frame = script.Parent.Parent --the Frame holding the TextBox
TextBox.FocusLost:connect(function() --make 'Frame' fade here end)
|
|
|
| Report Abuse |
|
|
|
| 08 Dec 2016 06:04 PM |
| use a textbox and a textbutton. Have a function connect to when someone presses the textbutton and then it retrieves the text in the textbox. Then compare that string to the PWord string. function clicked () enteredstring = tbox.Text if enteredstring == ##### then framethatholdgui.Visible = false end end textbutton.MouseButton1Down:connect(clicked) Fill in and define the variables may work. |
|
|
| Report Abuse |
|
|
Aliics
|
  |
| Joined: 29 Sep 2014 |
| Total Posts: 471 |
|
|
| 08 Dec 2016 06:05 PM |
I forgot to define 'TextBox', put 'TextBox = script.Parent' above the FocusLost Event.
|
|
|
| Report Abuse |
|
|
|
| 08 Dec 2016 06:06 PM |
function clicked () enteredstring = tbox.Text if enteredstring == word then framethatholdgui.Visible = false end end textbutton.MouseButton1Down:connect(clicked) Fill in and define the variables may work. |
|
|
| Report Abuse |
|
|