I had made a post whether this was a good method or not. It’s Okay, but it comes with a flaw.
When using this piece of Code it will stop your character, however It won’t save your input when using Enable()
, causing you to have to press the key again :
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()
This does not happen with the WalkSpeed Setting method (Probably because that does not directly touch anything input-related)
Is there any way to save the input after disabling it and then using Enable()
on the Player Module to get their controls back?
It just breaks the flow of the gameplay if you have to re tap they WASD keys every time instead of just holding the input.