I’m looking to make a script that detects how long and how hard you press Spacebar, A.K.A. detect how much the character should jump based on the time they pressed Spacebar.
Let’s say I held Spacebar for .1 seconds, it should jump just slightly. However, if I hold it down for a full second, it jumps all the way.
I don’t know how I can replicate this, since I’m sort of an average scripter anyways.
Yeah, so, how do I script this? Uh, I don’t really know how I can do this. Been searching on YouTube, DevForum, and everywhere, and even went as far as using AI to know how I can script this.
Where does “InputBegan” and “InputEnded” come from? How can it detect the key “Spacebar” if it doesn’t even mention it?
There are a lot of missing variables. How can I connect InputBegan and InputEnded?
How can I also connect “JumpHeight”? By connect, I mean to assign a correct variable for it.