-
What I want to achieve: I want to have a door that stays open only while you have your mouse held onto the button and closes when you take your mouse off of the button
-
What I have tried: I have tried using input ended and input began but I could not figure out how to fit that into my current door script
Here’s the script:
Screenshot 2022-07-23 234654|596x500 -
I have tried to look through the developer hub and through youtube as well but could not find anybody else with the same problem as me.
Conclusion: I want to create a door with a click detector button that makes the door open while you are holding your mouse on the button but once you take your mouse off the button the door closes.
any help is appreciated thank you! (I am also new to scripting and new to posting on the devforums so please excuse any mistakes i may have made)