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 » Scripting Helpers
Home Search
 

Re: How to make a text button get bigger when It's hovered?

Previous Thread :: Next Thread 
Qeary is not online. Qeary
Joined: 27 Jun 2013
Total Posts: 5401
25 Apr 2014 01:24 PM
The get smaller again on MouseLeave?

Error: You need builders club to buy builders club.
Report Abuse
Qeary is not online. Qeary
Joined: 27 Jun 2013
Total Posts: 5401
25 Apr 2014 01:32 PM
b1

Error: You need builders club to buy builders club.
Report Abuse
Qeary is not online. Qeary
Joined: 27 Jun 2013
Total Posts: 5401
26 Apr 2014 02:57 AM
b2

Error: You need builders club to buy builders club.
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
26 Apr 2014 03:02 AM
script.Parent.MouseEnter:connect(function()
script.Parent.FontSize=16
end

script.Parent.MouseLeave:connect(function()
script.Parent.FontSize=12
end
Report Abuse
Qeary is not online. Qeary
Joined: 27 Jun 2013
Total Posts: 5401
27 Apr 2014 12:17 AM
Thank you!

Error: You need builders club to buy builders club.
Report Abuse
blueboy112 is not online. blueboy112
Joined: 15 Apr 2009
Total Posts: 802
27 Apr 2014 12:34 AM
You can also use TweenSize and TextScaled, keeps a constant size on the Text and at the same time has a nice, fancy-ish tween on the object.

:: Schrödinger's cat walks into a bar and doesn't. ::
Report Abuse
Qeary is not online. Qeary
Joined: 27 Jun 2013
Total Posts: 5401
27 Apr 2014 01:08 AM
Wait the function MouseLeave script is broken.

Error: You need builders club to buy builders club.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
27 Apr 2014 02:29 AM
Just put them in one script, and make it a local script

Also this is it fixed

script.Parent.MouseEnter:connect(function()
script.Parent.FontSize = Enum.FontSize.Size18
end)

script.Parent.MouseLeave:connect(function()
script.Parent.FontSize = Enum.FontSize.Size12
end)
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
27 Apr 2014 03:35 AM
Sorry, I left off two brackets. Here:

script.Parent.MouseEnter:connect(function()
script.Parent.FontSize=16
end)

script.Parent.MouseLeave:connect(function()
script.Parent.FontSize=12
end)
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
27 Apr 2014 09:16 AM
@Smile
16 isn't a text size
It should should be a enum, or a string ("Size12" and "Size18")
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
27 Apr 2014 10:35 AM
Oh thanks!
Report Abuse
Qeary is not online. Qeary
Joined: 27 Jun 2013
Total Posts: 5401
04 May 2014 10:32 AM
Thanks both of you

Error: You need builders club to buy builders club.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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