|
| 15 Oct 2016 10:45 PM |
I have a button in a GUI, a textlabel also in the GUI not in the button, and I want the textlabel to appear on the side of the button when a player hovers over the mouse on the button. But it is not working.
gui = script.Parent
function onEnter() script.Parent.Parent.TextLabel.Visible = true gui.Text = "" gui.Font = "Settings" end
function onLeave() script.Parent.Parent.TextLabel.Visible = false gui.Text = "" gui.Font = "" end
gui.MouseEnter:connect(onEnter) gui.MouseLeave:connect(onLeave)
|
|
|
| Report Abuse |
|
|
|
| 15 Oct 2016 10:48 PM |
| ################################ |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2016 10:49 PM |
http
:
//
prntscr
.
com
/
cuuwuw
Filter is strong.
|
|
|
| Report Abuse |
|
|
|
| 15 Oct 2016 10:51 PM |
There's a lot wrong there. First of all, "Settings" isn't a font. Second, you shouldn't be using strings for the font names. Do
Enum.Font.FontName
instead. |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2016 10:52 PM |
gui.Font = "Settings" ?????
do you not know what a font is? |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2016 10:53 PM |
OH LOL THANKS JUST NOTICED
|
|
|
| Report Abuse |
|
|
|
| 15 Oct 2016 10:55 PM |
But there is still a script error.
|
|
|
| Report Abuse |
|
|
|
| 15 Oct 2016 10:56 PM |
| It would help to tell us the error. |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Oct 2016 10:58 PM |
| Are there any errors in output? |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2016 10:59 PM |
end is the error for some reason
|
|
|
| Report Abuse |
|
|