The problem that I noticed is that when you firstly bind something with tween it starts the tween for no reason when it’s binded.
I started making a game which has interactive parts which can be accessed as a GUI appears that says “f to interact” when you get closer to it and vanishes when you go farther then the minimum number. So, when the UI appears the F key will get bind with the appropriate door and calls a function EnterDoor.
It finds the door’s hinge and tweens it and plays it at the same time. My theory was that if I bind this then when only I press “f” it will activate but here comes the unwanted truth. When the bind action happens it automatically starts the function for no reason once and I don’t want this to happen.
I know how can I fix it inside the function but I want to know is there any way this can be fixed without making my function longer?