Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a changing size button gui if it detects a mouse on it (not clicking)?

been searching for this script and trying to make it but still have no idea of how I do this script

1 answer

I don't want to spoon-feed but I'll help you out because you seem like you need it. :)

script.Parent.MouseEnter:connect(function()
	-- action (make it bigger)
end)

script.Parent.MouseLeave:connect(function()
	-- undo action (back to normal size)
end)

There's better ways of tracking MouseEnter/MouseLeave, so other viewers, please don't butcher me, this is for the sake of simplicity.

If you are new to scripting, assuming you are, here are some helpful links to come of this:

http://wiki.roblox.com/index.php?title=UDim2 (Sizing the button) http://wiki.roblox.com/index.php?title=API:Class/TextButton (Useful events/functions/properties of buttons)

And last but not least, http://wiki.roblox.com (this is the best website to start off, it answers most of my questions and it helped me start off, I recommend doing the tutorials, they help a lot and you can learn a lot from them!)

Anyways, have fun on your scripting adventure!

This discussion is preserved as it was. New answers, comments, and votes are closed.