Stravan
|
  |
| Joined: 21 Dec 2009 |
| Total Posts: 1337 |
|
|
| 01 May 2016 05:31 PM |
i want a text button to get a tad bigger when the mouse goes over it, and return to normal size when the mouse leaves. it works, but if you mouse over it too fast, it gets stuck. any suggestions?
local cred = script.Parent function over() cred:TweenSizeAndPosition(UDim2.new(0.1, 0, 0.07, 0), UDim2.new(0.66, 0, 0.14, 0)) end script.Parent.MouseEnter:connect(over) function pass() cred:TweenSizeAndPosition(UDim2.new(0.08, 0, 0.05, 0), UDim2.new(0.66, 0, 0.14, 0)) end script.Parent.MouseLeave:connect(pass)
☜(ˆ▿ˆc)
|
|
|
| Report Abuse |
|
Stravan
|
  |
| Joined: 21 Dec 2009 |
| Total Posts: 1337 |
|
| |
membra
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 6313 |
|
|
| 01 May 2016 05:45 PM |
hey fam that function has a parameter called override. it is a boolean that if true fixes this issue. turn it on and you should be golden. http://wiki.roblox.com/index.php?title=API:Class/GuiObject/TweenSizeAndPosition
|
|
|
| Report Abuse |
|
membra
|
  |
| Joined: 14 Oct 2008 |
| Total Posts: 6313 |
|
|
| 01 May 2016 05:46 PM |
oh but if you meant stuck as in mouse events aint beng triggered because ur mouse gotta go fast then idk someone prob has a solution for dat tho. bless
|
|
|
| Report Abuse |
|
Stravan
|
  |
| Joined: 21 Dec 2009 |
| Total Posts: 1337 |
|
|
| 01 May 2016 05:53 PM |
nah this is for the mouse events. thanks for the help though!
☜(ˆ▿ˆc)
|
|
|
| Report Abuse |
|