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

MouseEnter Event Question?

Asked by 10 years ago

So I have this Gui, that what the player hovers over it, it displays text.

Is there any way for the text to go away when the mouse is off of the Gui?

Right now it has a wait for when it goes away.

Here's the script:

script.Parent.MouseEnter:connect(function(mouse) 
        script.Parent.TextLabel1.Visible = true
        script.Parent.TextLabel2.Visible = true
        script.Parent.TextLabel3.Visible = true
        wait(3)
        script.Parent.TextLabel1.Visible = false
        script.Parent.TextLabel2.Visible = false
        script.Parent.TextLabel3.Visible = false
    end)

Answer this question