Hey!
In my game, mobile players would often overskate past the puck when trying to pick it up. To solve this issue, I’m implementing a feature that directs the player towards the puck as they approach it.
Here’s what it looks like to overskate the puck (recorded with roblox recorder):
I have tried the following method:
local controls = require(game:GetService("Players").LocalPlayer.PlayerScripts.PlayerModule):GetControls()
controls:Disable()
-- Use :MoveTo() then controls:Enable() once the player picks up the puck.
However, this makes the joystick completely disappear on the screen. The player must then lift their finger and tap the screen again to move, causing him to lose his speed momentum.
As for Humanoid:MoveTo() without disabling player controls, it constantly gets overridden by the player’s movement input.
What do you think would be the best approach?