generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

TweenSizeAndPosition problem

Previous Thread :: Next Thread 
Stravan is not online. 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 is not online. Stravan
Joined: 21 Dec 2009
Total Posts: 1337
01 May 2016 05:43 PM
bump

☜(ˆ▿ˆc)


Report Abuse
membra is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image