ButtonClick is a module to easily give your buttons cool animations. I have also released 4 demo buttons which can help show you how this modules works.
This is nice and all, but isn’t this module pointless? I could literally accomplish this with one function: button:TweenPosition()
Assuming that’s all the module does under the hood (I can’t inspect for myself as the place won’t open), I also think you’re shooting yourself in the foot using OOP for something so simple.
While you could implement this easily with :TweenPosition, this module could be a good place to start for some beginners or good for those who don’t want to script.
Anyone without knowledge can do this though. I’m being extremely blunt with this but someone can make this by referring to the Roblox wiki.
You’ve in a way over-complicated this as a new programmer looking through your code would assume that this is how they must make animated buttons using an Object Oriented Programming style.
Furthermore, you require a object named “Button” which is not clarified and you also have no reason to require a container, instead you can just take the button itself which also would make it so you did not need to hardcode a object name. You should allow for a container and a button to be provided rather than only a container.
While others may think this is extremely basic and easy to implement yourself, I think the point of community resources is to provide for the community. So even if only one person finds this useful and uses it for their games, I think @UndecidedFactor would have done their job in providing for the community.
I agree. I am not experienced with UI Design and I wouldn’t have known that you needed an extra shadow part underneath to achieve the effect. This was really helpful.
Nothing much, just adding a true so it overrides the previous tween just so it runs a bit nicer, honestly just a personal preferance if you want it or not - but overall yeah this is pretty cool.
A better implementation- and more suited for beginners, would be to have a single function you pass a button into. Then the function can handle all of the animation itself based off of .MouseEnter, .MouseLeave, .MouseButton1Down, .MouseButton1Up.
The thing is, if someone didn’t know how to script, they wouldn’t understand how to use this module either. And if they did have some basic knowledge of scripting, I would encourage them to just make this themself. It’s not hard at all.
If this is targeted at non-coders, it would be better as a free model instead of a module.
I mean yeah… that’s in the title. I’m not saying OP shouldn’t share this, I’m just saying this approach to sharing isn’t the best and is actually over complicating something simple.