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

How can I make a script where when the mouse Hovers into a GUI the GUIs-?

Asked by 10 years ago
  • Rest of title; Transparency will equal to 0 and when the mouse leaves the GUI its Transparency equals to 0.5?

I know this question has been answered multiple times, but I am not too sure how to make a script where when the mouse Hovers to a GUI the GUIs transparency will equal to 0, and when the mouse leaves the GUIs transparency will then equal to 0.5. I am sorry if this question isn't acceptable, doesn't explain allot, is off-topic, or is not constructive.

1 answer

Log in to vote
2
Answered by
HexC3D 830 Moderation Voter
10 years ago
TextButton = script.Parent
TextButton.MouseEnter:connect(function()
TextButton.Transparency = 0

end)

TextButton.MouseLeave:connect(function()
TextButton.Transparency = 0.5 
end)

Also here are some links to understand this from wiki.

MouseEnter

MouseLeave

0
Wow, thanks man! This helps allot! +1 TheeDeathCaster 2368 — 10y
Ad

Answer this question