Tria-Studio / Tria-Issues

Public Repo for suggestions and bugs.
6 stars 3 forks source link

[SUGGESTION]Button Activation Script #166

Open RayhanahyaR opened 1 year ago

RayhanahyaR commented 1 year ago

Is your feature request related to a problem? Please describe. When ClickDetectors are involved in maps, it usually becomes hard to indicate. So one might place a button inside the ClickDetector part to indicate it. But how do we get the button pressed?

Describe the solution you'd like A solution could be a script function which activates a button. This can be done by, well, there's already an unofficial script for it: MapLib:_MapHandler.ButtonHandler:GetButton(1):Activate(game.Players:GetChildren()[1]) However this can certainly be made much more shortened. MapLib:ActivateButton(1)

Of course this won't be used just for ClickDetectors. It's likely that things like UI or making more than one "Hitbox" would benefit from this too.

Additional context Proof that this would actually be used:

https://user-images.githubusercontent.com/104731980/235231866-5b0b9723-26f2-4b55-9b01-7e4f9f14b449.mp4

Rob07erto commented 1 year ago

FUCK YEA!

grif-0 commented 1 year ago

This has been talked about before but i think that this was decided against, although this was a while ago. @Ethan76167?