jaipack17 / Nature2D

A 2D physics engine for Roblox. Create versatile physics simulations and mechanics with GUIs!
https://jaipack17.github.io/Nature2D/
MIT License
147 stars 8 forks source link

ApplyForce wont stop after value is set to false #48

Closed OrdinaryPixel closed 1 year ago

OrdinaryPixel commented 1 year ago

Description

Hello! I apologize in advance because I'm new to luau and don't know alot. So what I tried to make is a simple platform on which the player can control a frame with the keys A & D. The issue I'm having is that ApplyForce wont stop after it should stop when releasing the key A

So far I have

I've tried using Kodezi and ChatGPT to find a possible error but to no avail

localscript.txt

jaipack17 commented 1 year ago

I see that you have used InputBegan twice, you might want to replace InputBegan with InputEnded for the 2nd event. Let me know if it works!

OrdinaryPixel commented 1 year ago

Works perfectly now, thanks!